File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fn main() {
24
24
let now: DateTime < Utc > = Utc :: now ( ) ;
25
25
let text = format ! (
26
26
"Hello from RustyHermit {}!\n The current UTC time is {}!\n " ,
27
- String :: from_utf8( crab) . unwrap_or_default( ) ,
27
+ String :: from_utf8( crab. clone ( ) ) . unwrap_or_default( ) ,
28
28
now. format( "%Y-%m-%d %H:%M:%S" )
29
29
) ;
30
30
let response = tiny_http:: Response :: from_string ( text) ;
@@ -43,7 +43,7 @@ fn main() {
43
43
let now: DateTime < Utc > = Utc :: now ( ) ;
44
44
let text = format ! (
45
45
"Hello from RustyHermit {}!\n The current UTC time is {}!\n " ,
46
- String :: from_utf8( crab) . unwrap_or_default( ) ,
46
+ String :: from_utf8( crab. clone ( ) ) . unwrap_or_default( ) ,
47
47
now. format( "%Y-%m-%d %H:%M:%S" )
48
48
) ;
49
49
let response = tiny_http:: Response :: from_string ( text) ;
You can’t perform that action at this time.
0 commit comments