Skip to content

fix(rpc): Refactor the cookie-based RPC authentication (#8940)

Sign in for the full log view
GitHub Actions / Clippy (stable) Results failed Oct 21, 2024 in 0s

Clippy (stable) Results

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check failure on line 39 in zebra-rpc/src/server/cookie.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

the borrowed expression implements the required traits

error: the borrowed expression implements the required traits
  --> zebra-rpc/src/server/cookie.rs:39:29
   |
39 |     std::fs::create_dir_all(&dir)?;
   |                             ^^^^ help: change this to: `dir`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`

Check failure on line 39 in zebra-rpc/src/server/cookie.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

the borrowed expression implements the required traits

error: the borrowed expression implements the required traits
  --> zebra-rpc/src/server/cookie.rs:39:29
   |
39 |     std::fs::create_dir_all(&dir)?;
   |                             ^^^^ help: change this to: `dir`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`