Skip to content

Commit ceec888

Browse files
committed
style: apply clippy
1 parent 60a6840 commit ceec888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infra/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This will patch it to standard RFC3339 format
44
pub fn patch_rfc3339(time_str: &str) -> String {
55
if time_str.len() != 25 {
6-
let u8vec: Vec<_> = time_str.bytes().into_iter().take(19).collect();
6+
let u8vec: Vec<_> = time_str.bytes().take(19).collect();
77
format!("{}+08:00", String::from_utf8(u8vec).unwrap())
88
} else {
99
time_str.to_owned()

0 commit comments

Comments
 (0)