Skip to content

Commit 1ae7ab2

Browse files
spiraliKobzol
authored andcommitted
Fixed clippy warnings for Rust 1.87.0
1 parent 6ca04aa commit 1ae7ab2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/hyperqueue/src/stream/reader/outputlog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl OutputLog {
124124
}
125125
};
126126
if let Some(uid) = server_uid {
127-
if uid != header.server_uid.as_str() {
127+
if uid != header.server_uid {
128128
log::debug!("{} ignored because different server uid", path.display());
129129
continue;
130130
}

crates/hyperqueue/src/worker/streamer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub const STREAM_FILE_SUFFIX: &str = "hqs";
2525

2626
#[derive(Serialize, Deserialize, Debug)]
2727
pub(crate) struct StreamFileHeader<'a> {
28-
pub server_uid: Cow<'a, String>,
28+
pub server_uid: Cow<'a, str>,
2929
pub worker_id: WorkerId,
3030
}
3131

0 commit comments

Comments
 (0)