clippy: fix warning from needless_return lint

This commit is contained in:
Daniel Hofstetter
2024-11-29 09:44:40 +01:00
parent 5e3fc539a3
commit a9bccfa20a
+2 -1
View File
@@ -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