Skip to content

Commit 2085b03

Browse files
authored
Merge pull request #3530 from didier-wenzek/fix/clippy-warnings
fix: clippy warning
2 parents e727c2d + c3f514e commit 2085b03

File tree

2 files changed

+2
-2
lines changed
  • crates

2 files changed

+2
-2
lines changed

crates/core/tedge/src/cli/certificate/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub enum TEdgeCertCli {
8080
///
8181
/// Exit code:
8282
/// * `0` - certificate needs renewal as it is no longer valid,
83-
/// or it will expire within the duration, `certificate.validity.minimum_duration`
83+
/// or it will expire within the duration, `certificate.validity.minimum_duration`
8484
/// * `1` - certificate is still valid and does not need renewal
8585
/// * `2` - unexpected error (e.g. certificate does not exist, or can't be read)
8686
NeedsRenewal {

crates/extensions/c8y_auth_proxy/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ mod tests {
10361036
let body = "A body";
10371037
let res = reqwest_client()
10381038
.put(format!("https://localhost:{port}/c8y/hello"))
1039-
.header("Content-Length", body.bytes().len())
1039+
.header("Content-Length", body.len())
10401040
.body(body)
10411041
.send()
10421042
.await

0 commit comments

Comments
 (0)