Skip to content

Commit c3f514e

Browse files
committed
Fix clippy warning
I would prefer to `allow(clippy::doc_overindented_list_items)` however this lint is too recent. Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
1 parent e727c2d commit c3f514e

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)