Skip to content

pages build and deployment #102

pages build and deployment

pages build and deployment #102

GitHub Actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in succeeded Nov 6, 2024 in 1m 1s

Clippy (Stable ~ Linux/x86_64)

Clippy was successful!

Details

Running cargo clippy took roughly ~60513ms to complete

  • Working Directory: repository directory

Annotations

Check warning on line 38 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L38

variant name ends with the enum's name
Raw output
warning: variant name ends with the enum's name
  --> src/content.rs:38:5
   |
38 |     DisplayTask(models::Task),
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
   = note: `#[warn(clippy::enum_variant_names)]` on by default

Check warning on line 39 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L39

variant name ends with the enum's name
Raw output
warning: variant name ends with the enum's name
  --> src/content.rs:39:5
   |
39 |     UpdateTask(models::Task),
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names

Check warning on line 41 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L41

variant name ends with the enum's name
Raw output
warning: variant name ends with the enum's name
  --> src/content.rs:41:5
   |
41 |     CreateTask(models::Task),
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names

Check warning on line 84 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L84

writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
Raw output
warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
  --> src/core/service.rs:84:35
   |
84 | async fn get_tasks(database_path: &PathBuf) -> Result<Vec<Task>, Error> {
   |                                   ^^^^^^^^ help: change this to: `&Path`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
   = note: `#[warn(clippy::ptr_arg)]` on by default

Check warning on line 126 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L126

writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
Raw output
warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
   --> src/core/service.rs:126:35
    |
126 | async fn get_lists(database_path: &PathBuf) -> Result<Vec<List>, Error> {
    |                                   ^^^^^^^^ help: change this to: `&Path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg

Check warning on line 22 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L22

the borrowed expression implements the required traits
Raw output
warning: the borrowed expression implements the required traits
  --> src/core/services/computer/engine.rs:22:37
   |
22 |             std::fs::create_dir_all(&engine.lists_path()).ok()?;
   |                                     ^^^^^^^^^^^^^^^^^^^^ help: change this to: `engine.lists_path()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default

Check warning on line 25 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L25

the borrowed expression implements the required traits
Raw output
warning: the borrowed expression implements the required traits
  --> src/core/services/computer/engine.rs:25:37
   |
25 |             std::fs::create_dir_all(&engine.tasks_path()).ok()?;
   |                                     ^^^^^^^^^^^^^^^^^^^^ help: change this to: `engine.tasks_path()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 84 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L84

the borrowed expression implements the required traits
Raw output
warning: the borrowed expression implements the required traits
  --> src/core/services/computer/engine.rs:84:37
   |
84 |             std::fs::create_dir_all(&self.tasks_path().join(&task.parent))?;
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `self.tasks_path().join(&task.parent)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 42 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.81.0 (eeb90cda1 2024-09-04) in

/home/runner/work/tasks/tasks/src/main.rs#L42

variant name ends with the enum's name
Raw output
warning: variant name ends with the enum's name
  --> src/details.rs:42:5
   |
42 |     UpdateTask(models::Task),
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names