Skip to content

Update Cargo

Update Cargo #131

GitHub Actions / clippy failed Aug 23, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (3)

src/trigger.rs|50 col 12| warning: fields force_envs and deps are never read
--> src/trigger.rs:56:5
|
50 | pub struct Trigger {
| ------- fields in this struct
...
56 | force_envs: Vec,
| ^^^^^^^^^^
...
59 | deps: Vec,
| ^^^^
|
= note: Trigger has a derived impl for the trait Debug, but this is intentionally ignored during dead code analysis
= note: #[warn(dead_code)] on by default
src/bin/usysconf/pathtimes.rs|12 col 12| warning: field map is never read
--> src/bin/usysconf/pathtimes.rs:13:5
|
12 | pub struct PathTimes {
| --------- field in this struct
13 | map: HashMap<Path, Mtime>,
| ^^^
|
= note: #[warn(dead_code)] on by default
src/bin/usysconf/pathtimes.rs|16 col 1| warning: associated items new, update, get, and save are never used
--> src/bin/usysconf/pathtimes.rs:17:12
|
16 | impl PathTimes {
| -------------- associated items in this implementation
17 | pub fn new(source: impl Read) -> Result<Self, bincode::Error> {
| ^^^
...
23 | pub fn update(&mut self, path: Path, mtime: Mtime) {
| ^^^^^^
...
27 | pub fn get(&self, path: &Path) -> Option {
| ^^^
...
31 | pub fn save(&mut self, writer: impl Write) -> Result<(), bincode::Error> {
| ^^^^

Filtered Findings (0)

Annotations

Check warning on line 50 in src/trigger.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] src/trigger.rs#L50

warning: fields `force_envs` and `deps` are never read
  --> src/trigger.rs:56:5
   |
50 | pub struct Trigger {
   |            ------- fields in this struct
...
56 |     force_envs: Vec<OsEnv>,
   |     ^^^^^^^^^^
...
59 |     deps: Vec<String>,
   |     ^^^^
   |
   = note: `Trigger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default
Raw output
src/trigger.rs:50:12:w:warning: fields `force_envs` and `deps` are never read
  --> src/trigger.rs:56:5
   |
50 | pub struct Trigger {
   |            ------- fields in this struct
...
56 |     force_envs: Vec<OsEnv>,
   |     ^^^^^^^^^^
...
59 |     deps: Vec<String>,
   |     ^^^^
   |
   = note: `Trigger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default


__END__

Check warning on line 12 in src/bin/usysconf/pathtimes.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] src/bin/usysconf/pathtimes.rs#L12

warning: field `map` is never read
  --> src/bin/usysconf/pathtimes.rs:13:5
   |
12 | pub struct PathTimes {
   |            --------- field in this struct
13 |     map: HashMap<Path, Mtime>,
   |     ^^^
   |
   = note: `#[warn(dead_code)]` on by default
Raw output
src/bin/usysconf/pathtimes.rs:12:12:w:warning: field `map` is never read
  --> src/bin/usysconf/pathtimes.rs:13:5
   |
12 | pub struct PathTimes {
   |            --------- field in this struct
13 |     map: HashMap<Path, Mtime>,
   |     ^^^
   |
   = note: `#[warn(dead_code)]` on by default


__END__

Check warning on line 16 in src/bin/usysconf/pathtimes.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] src/bin/usysconf/pathtimes.rs#L16

warning: associated items `new`, `update`, `get`, and `save` are never used
  --> src/bin/usysconf/pathtimes.rs:17:12
   |
16 | impl PathTimes {
   | -------------- associated items in this implementation
17 |     pub fn new(source: impl Read) -> Result<Self, bincode::Error> {
   |            ^^^
...
23 |     pub fn update(&mut self, path: Path, mtime: Mtime) {
   |            ^^^^^^
...
27 |     pub fn get(&self, path: &Path) -> Option<Mtime> {
   |            ^^^
...
31 |     pub fn save(&mut self, writer: impl Write) -> Result<(), bincode::Error> {
   |            ^^^^
Raw output
src/bin/usysconf/pathtimes.rs:16:1:w:warning: associated items `new`, `update`, `get`, and `save` are never used
  --> src/bin/usysconf/pathtimes.rs:17:12
   |
16 | impl PathTimes {
   | -------------- associated items in this implementation
17 |     pub fn new(source: impl Read) -> Result<Self, bincode::Error> {
   |            ^^^
...
23 |     pub fn update(&mut self, path: Path, mtime: Mtime) {
   |            ^^^^^^
...
27 |     pub fn get(&self, path: &Path) -> Option<Mtime> {
   |            ^^^
...
31 |     pub fn save(&mut self, writer: impl Write) -> Result<(), bincode::Error> {
   |            ^^^^


__END__