feat: use a monorepo for building #21
ci.yml
on: push
clippy_check
31s
cargo fmt
19s
check conventional commit compliance
7s
build
1m 6s
Annotations
9 warnings
check conventional commit compliance
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
cargo fmt
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
unneeded `return` statement:
tiny-mailcatcher/src/http.rs#L273
warning: unneeded `return` statement
--> tiny-mailcatcher/src/http.rs:273:5
|
273 | / return if let Some(message) = message {
274 | | Ok(Response::builder()
275 | | .header(
276 | | "Content-Type",
... |
285 | | .unwrap())
286 | | };
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
273 ~ if let Some(message) = message {
274 + Ok(Response::builder()
275 + .header(
276 + "Content-Type",
277 + format!("message/rfc822; charset={}", message.charset),
278 + )
279 + .body(Body::from(message.source.clone()))
280 + .unwrap())
281 + } else {
282 + Ok(Response::builder()
283 + .status(StatusCode::NOT_FOUND)
284 + .body(Body::empty())
285 + .unwrap())
286 ~ }
|
|
unneeded `return` statement:
tiny-mailcatcher/src/http.rs#L250
warning: unneeded `return` statement
--> tiny-mailcatcher/src/http.rs:250:5
|
250 | / return if let Some(message) = message {
251 | | Ok(Response::builder()
252 | | .header(
253 | | "Content-Type",
... |
262 | | .unwrap())
263 | | };
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
250 ~ if let Some(message) = message {
251 + Ok(Response::builder()
252 + .header(
253 + "Content-Type",
254 + format!("text/plain; charset={}", message.charset),
255 + )
256 + .body(Body::from(message.source.clone()))
257 + .unwrap())
258 + } else {
259 + Ok(Response::builder()
260 + .status(StatusCode::NOT_FOUND)
261 + .body(Body::empty())
262 + .unwrap())
263 ~ }
|
|
unneeded `return` statement:
tiny-mailcatcher/src/http.rs#L227
warning: unneeded `return` statement
--> tiny-mailcatcher/src/http.rs:227:5
|
227 | / return if let Some(html_part) = html_part {
228 | | Ok(Response::builder()
229 | | .header(
230 | | "Content-Type",
... |
239 | | .unwrap())
240 | | };
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
227 ~ if let Some(html_part) = html_part {
228 + Ok(Response::builder()
229 + .header(
230 + "Content-Type",
231 + format!("text/plain; charset={}", html_part.charset),
232 + )
233 + .body(Body::from(html_part.body.clone()))
234 + .unwrap())
235 + } else {
236 + Ok(Response::builder()
237 + .status(StatusCode::NOT_FOUND)
238 + .body(Body::empty())
239 + .unwrap())
240 ~ }
|
|
unneeded `return` statement:
tiny-mailcatcher/src/http.rs#L204
warning: unneeded `return` statement
--> tiny-mailcatcher/src/http.rs:204:5
|
204 | / return if let Some(html_part) = html_part {
205 | | Ok(Response::builder()
206 | | .header(
207 | | "Content-Type",
... |
216 | | .unwrap())
217 | | };
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
204 ~ if let Some(html_part) = html_part {
205 + Ok(Response::builder()
206 + .header(
207 + "Content-Type",
208 + format!("text/html; charset={}", html_part.charset),
209 + )
210 + .body(Body::from(html_part.body.clone()))
211 + .unwrap())
212 + } else {
213 + Ok(Response::builder()
214 + .status(StatusCode::NOT_FOUND)
215 + .body(Body::empty())
216 + .unwrap())
217 ~ }
|
|
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy_check
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|