Skip to content

Set grype cpe auto add option (#62) #22

Set grype cpe auto add option (#62)

Set grype cpe auto add option (#62) #22

GitHub Actions / Rust Clippy Report failed Oct 9, 2023 in 0s

Rust Clippy Report

1 error, 6 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 6
Note 0
Help 0

Versions

  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad4 2023-10-03)

Annotations

Check failure on line 20 in src/dirty.rs

See this annotation in the file changed.

@github-actions github-actions / Rust Clippy Report

call to unsafe function is unsafe and requires unsafe function or block

error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
  --> src/dirty.rs:20:15
   |
20 |     let pid = libc::getpid() as u32;
   |               ^^^^^^^^^^^^^^ call to unsafe function
   |
   = note: consult the function's documentation for information on how to avoid undefined behavior

Check warning on line 20 in src/dirty.rs

See this annotation in the file changed.

@github-actions github-actions / Rust Clippy Report

unused variable: `pid`

warning: unused variable: `pid`
  --> src/dirty.rs:20:9
   |
20 |     let pid = libc::getpid() as u32;
   |         ^^^ help: if this is intentional, prefix it with an underscore: `_pid`

Check warning on line 17 in src/dirty.rs

See this annotation in the file changed.

@github-actions github-actions / Rust Clippy Report

unused variable: `pid`

warning: unused variable: `pid`
  --> src/dirty.rs:17:9
   |
17 |     let pid = unsafe { libc::getpid() as u32 };
   |         ^^^ help: if this is intentional, prefix it with an underscore: `_pid`

Check warning on line 12 in src/dirty.rs

See this annotation in the file changed.

@github-actions github-actions / Rust Clippy Report

unused variable: `client`

warning: unused variable: `client`
  --> src/dirty.rs:12:9
   |
12 |     let client = reqwest::Client::builder()
   |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client`

Check warning on line 8 in src/dirty.rs

See this annotation in the file changed.

@github-actions github-actions / Rust Clippy Report

unused variable: `client`

warning: unused variable: `client`
 --> src/dirty.rs:8:9
  |
8 |     let client = reqwest::Client::builder()
  |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client`

Check warning on line 5 in src/dirty.rs

See this annotation in the file changed.

@github-actions github-actions / Rust Clippy Report

unused variable: `y`

warning: unused variable: `y`
 --> src/dirty.rs:5:9
  |
5 |     let y = 1_f64 / x;
  |         ^ help: if this is intentional, prefix it with an underscore: `_y`
  |
  = note: `#[warn(unused_variables)]` on by default

Check warning on line 1 in src/dirty.rs

See this annotation in the file changed.

@github-actions github-actions / Rust Clippy Report

unused import: `reqwest::header`

warning: unused import: `reqwest::header`
 --> src/dirty.rs:1:5
  |
1 | use reqwest::header;
  |     ^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default