Skip to content

Commit 5cda3d6

Browse files
committed
src: fix clippy warnings
This should unblock CI on main.
1 parent 97a7c82 commit 5cda3d6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/trace/server_timing/metric.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ mod test {
8080
use std::time::Duration;
8181

8282
#[test]
83+
#[allow(clippy::redundant_clone)]
8384
fn encode() -> crate::Result<()> {
8485
let name = String::from("Server");
8586
let dur = Duration::from_secs(1);

src/trace/server_timing/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ mod test {
175175
fn assert_entry(s: &str, n: &str, du: Option<u64>, de: Option<&str>) -> crate::Result<()> {
176176
let e = parse_entry(s)?;
177177
assert_eq!(e.name(), n);
178-
assert_eq!(e.duration(), du.map(|du| Duration::from_millis(du)));
178+
assert_eq!(e.duration(), du.map(Duration::from_millis));
179179
assert_eq!(e.description(), de);
180180
Ok(())
181181
}

src/utils/date.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const SECONDS_IN_HOUR: u64 = 3600;
1616
/// Format using the `Display` trait.
1717
/// Convert timestamp into/from `SytemTime` to use.
1818
/// Supports comparison and sorting.
19-
#[derive(Copy, Clone, Debug, Eq, Ord)]
19+
#[derive(Copy, Clone, Debug, Eq)]
2020
pub(crate) struct HttpDate {
2121
/// 0...59
2222
second: u8,

0 commit comments

Comments
 (0)