Skip to content

Add cargo lint.

Add cargo lint. #1

Triggered via push July 23, 2023 12:56
Status Success
Total duration 2m 7s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

15 warnings
Rust lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Rust lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rust lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rust lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rust lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rust lint: src/controllers/playlist_controller.rs#L44
unneeded `return` statement
Rust lint: src/controllers/playlist_controller.rs#L64
unneeded `return` statement
Rust lint: src/models/user.rs#L117
redundant closure
Rust lint: src/models/playlist.rs#L35
called `unwrap` on `res` after checking its variant with `is_some`
Rust lint: src/models/playlist.rs#L38
question mark operator is useless here
Rust lint: src/models/playlist.rs#L91
question mark operator is useless here
Rust lint: src/models/playlist.rs#L121
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
Rust lint: src/models/playlist.rs#L136
question mark operator is useless here
Rust lint: src/models/playlist_item.rs#L32
called `unwrap` on `res` after checking its variant with `is_some`
Rust lint: src/models/playlist_item.rs#L35
question mark operator is useless here