chore: update libcosmic #30
Annotations
10 warnings
using `clone` on type `Option<Entity>` which implements the `Copy` trait:
src/main.rs#L768
warning: using `clone` on type `Option<Entity>` which implements the `Copy` trait
--> src/app.rs:768:37
|
768 | ... 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
|
using `clone` on type `Option<Entity>` which implements the `Copy` trait:
src/main.rs#L799
warning: using `clone` on type `Option<Entity>` which implements the `Copy` trait
--> src/app.rs:799:29
|
799 | ... 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
|
variant name ends with the enum's name:
src/main.rs#L38
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
|
variant name ends with the enum's name:
src/main.rs#L39
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
|
variant name ends with the enum's name:
src/main.rs#L41
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
|
writing `&PathBuf` instead of `&Path` involves a new object where a slice will do:
src/main.rs#L85
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
|
writing `&PathBuf` instead of `&Path` involves a new object where a slice will do:
src/main.rs#L127
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
|
the borrowed expression implements the required traits:
src/main.rs#L22
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
|
the borrowed expression implements the required traits:
src/main.rs#L25
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
|
the borrowed expression implements the required traits:
src/main.rs#L84
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
|