Skip to content

Commit a3ba19b

Browse files
committed
Fix clippy warnings
1 parent 9fd6d61 commit a3ba19b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,9 @@ fn path_template_to_path(
545545
let timestamp_string = match timezone {
546546
TimeZone::Local => {
547547
let local_timestamp = Local.from_utc_datetime(&date_time.naive_utc());
548-
local_timestamp.format(&timestamp_template)
548+
local_timestamp.format(timestamp_template)
549549
}
550-
TimeZone::Utc => date_time.format(&timestamp_template),
550+
TimeZone::Utc => date_time.format(timestamp_template),
551551
}
552552
.to_string();
553553
let path_string = path_template.replace("{timestamp}", &timestamp_string);

src/syslog/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl<W: fmt::Write> fmt::Write for Rfc5424LikeValueEscaper<W> {
160160
if s.len() >= index {
161161
s = &s[(index + 1)..];
162162
} else {
163-
s = &"";
163+
s = "";
164164
break;
165165
}
166166
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy