Skip to content

Release rc.7 that can expose capabilities #111

Release rc.7 that can expose capabilities

Release rc.7 that can expose capabilities #111

GitHub Actions / clippy succeeded Sep 16, 2023 in 1s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.73.0-beta.5 (ea9959354 2023-09-09)
  • cargo 1.73.0-beta.5 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (ea99593 2023-09-09)

Annotations

Check warning on line 212 in src/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

taken reference of right operand

warning: taken reference of right operand
   --> src/key.rs:212:9
    |
212 |         String::new() + &self + rhs
    |         ^^^^^^^^^^^^^^^^-----
    |                         |
    |                         help: use the right value directly: `self`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
    = note: `#[warn(clippy::op_ref)]` on by default

Check warning on line 818 in src/session.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

warning: deref which would be done by auto-deref
   --> src/session.rs:818:55
    |
818 |                 let body = match serde_json::from_str(&*body)? {
    |                                                       ^^^^^^ help: try: `&body`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
    = note: `#[warn(clippy::explicit_auto_deref)]` on by default

Check warning on line 753 in src/session.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> src/session.rs:749:70
    |
749 |                       base64::engine::general_purpose::STANDARD.encode(&format!(
    |  ______________________________________________________________________^
750 | |                         "{}:{}",
751 | |                         url.username(),
752 | |                         url.password().unwrap_or("")
753 | |                     ))
    | |_____________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default
help: change this to
    |
749 ~                     base64::engine::general_purpose::STANDARD.encode(format!(
750 +                         "{}:{}",
751 +                         url.username(),
752 +                         url.password().unwrap_or("")
753 ~                     ))
    |