Skip to content

Commit f3c3f0e

Browse files
committed
replace the closure with the function itself
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 5d5a7ef commit f3c3f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dist/dist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ fn update_from_dist_<'a>(
685685
// bunch of the tests, which (inexplicably) use 2015-01-01 as their manifest dates.
686686
let first_manifest = Utc.from_utc_date(&NaiveDate::from_ymd(2014, 12, 20));
687687
let old_manifest = old_date
688-
.and_then(|date| utc_from_manifest_date(date))
688+
.and_then(utc_from_manifest_date)
689689
.unwrap_or(first_manifest);
690690
let last_manifest = if allow_downgrade {
691691
first_manifest

0 commit comments

Comments
 (0)