Skip to content

pages build and deployment #108

pages build and deployment

pages build and deployment #108

GitHub Actions / Clippy: Rust Stable 1.82.0 (f6e511eec 2024-10-15) in succeeded Nov 10, 2024 in 55s

Clippy (Stable ~ Linux/x86_64)

Clippy was successful!

Details

Running cargo clippy took roughly ~55016ms to complete

  • Working Directory: repository directory

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.82.0 (f6e511eec 2024-10-15) in

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

using `clone` on type `Option<Entity>` which implements the `Copy` trait
Raw output
warning: using `clone` on type `Option<Entity>` which implements the `Copy` trait
   --> src/app.rs:755:37
    |
755 | ...                   entity.clone(),
    |                       ^^^^^^^^^^^^^^ help: try dereferencing it: `*entity`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
    = note: `#[warn(clippy::clone_on_copy)]` on by default

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

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.82.0 (f6e511eec 2024-10-15) in

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

using `clone` on type `Option<Entity>` which implements the `Copy` trait
Raw output
warning: using `clone` on type `Option<Entity>` which implements the `Copy` trait
   --> src/app.rs:786:29
    |
786 | ...                   entity.clone(),
    |                       ^^^^^^^^^^^^^^ help: try dereferencing it: `*entity`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

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.82.0 (f6e511eec 2024-10-15) 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.82.0 (f6e511eec 2024-10-15) 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.82.0 (f6e511eec 2024-10-15) 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 85 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.82.0 (f6e511eec 2024-10-15) in

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

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:85:35
   |
85 | 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 127 in /home/runner/work/tasks/tasks/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.82.0 (f6e511eec 2024-10-15) in

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

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:127:35
    |
127 | 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.82.0 (f6e511eec 2024-10-15) 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.82.0 (f6e511eec 2024-10-15) 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.82.0 (f6e511eec 2024-10-15) 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.82.0 (f6e511eec 2024-10-15) 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