You've already forked parse_datetime
mirror of
https://github.com/uutils/parse_datetime.git
synced 2026-06-10 16:13:15 -07:00
clippy: fix warning from needless_return lint
This commit is contained in:
+2
-1
@@ -415,8 +415,9 @@ mod tests {
|
||||
fn get_formatted_date(date: DateTime<Local>, weekday: &str) -> String {
|
||||
let result = parse_datetime_at_date(date, weekday).unwrap();
|
||||
|
||||
return result.format("%F %T %f").to_string();
|
||||
result.format("%F %T %f").to_string()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_weekday() {
|
||||
// add some constant hours and minutes and seconds to check its reset
|
||||
|
||||
Reference in New Issue
Block a user