Skip to content

Commit c6577bf

Browse files
committed
remove some clippy warnings
1 parent 8269a77 commit c6577bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/httpd/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn main() {
2424
let now: DateTime<Utc> = Utc::now();
2525
let text = format!(
2626
"Hello from RustyHermit {}!\nThe current UTC time is {}!\n",
27-
String::from_utf8(crab).unwrap_or_default(),
27+
String::from_utf8(crab.clone()).unwrap_or_default(),
2828
now.format("%Y-%m-%d %H:%M:%S")
2929
);
3030
let response = tiny_http::Response::from_string(text);
@@ -43,7 +43,7 @@ fn main() {
4343
let now: DateTime<Utc> = Utc::now();
4444
let text = format!(
4545
"Hello from RustyHermit {}!\nThe current UTC time is {}!\n",
46-
String::from_utf8(crab).unwrap_or_default(),
46+
String::from_utf8(crab.clone()).unwrap_or_default(),
4747
now.format("%Y-%m-%d %H:%M:%S")
4848
);
4949
let response = tiny_http::Response::from_string(text);

0 commit comments

Comments
 (0)