Skip to content

Commit 623c626

Browse files
authored
Merge pull request #95 from cakebaker/clippy_fix_warning
clippy: fix warning from `needless_return` lint
2 parents 5e3fc53 + a9bccfa commit 623c626

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,9 @@ mod tests {
415415
fn get_formatted_date(date: DateTime<Local>, weekday: &str) -> String {
416416
let result = parse_datetime_at_date(date, weekday).unwrap();
417417

418-
return result.format("%F %T %f").to_string();
418+
result.format("%F %T %f").to_string()
419419
}
420+
420421
#[test]
421422
fn test_weekday() {
422423
// add some constant hours and minutes and seconds to check its reset

0 commit comments

Comments
 (0)