Skip to content

Commit

Permalink
verification: fix clippy::needless_borrows_for_generic_args
Browse files Browse the repository at this point in the history
```
error: the borrowed expression implements the required traits
   --> rustls-platform-verifier/src/verification/android.rs:193:53
    |
193 |                         JValue::from(env.new_string(&server_name.to_str())?),
    |                                                     ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `server_name.to_str()`
    |
    = 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)]`
```
  • Loading branch information
cpu committed Jul 29, 2024
1 parent a38cd9f commit 195959d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustls-platform-verifier/src/verification/android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl Verifier {
VERIFIER_CALL,
&[
JValue::from(*cx.application_context()),
JValue::from(env.new_string(&server_name.to_str())?),
JValue::from(env.new_string(server_name.to_str())?),
JValue::from(env.new_string(AUTH_TYPE)?),
JValue::from(JObject::from(allowed_ekus)),
JValue::from(ocsp_response),
Expand Down

0 comments on commit 195959d

Please sign in to comment.