From 5e50fa946f5ea89f1cbfcc3db8b232565f6a61f2 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 6 Oct 2019 10:01:18 +0200 Subject: With no return --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 1fd07b4..bf48d04 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ pub fn partition (f: &Fn(u32) -> i64, v: &Vec) -> LinkedList i64, days: &Vec) -> LinkedList> { @@ -46,5 +46,5 @@ pub fn partition_days (f: &Fn(u32) -> i64, days: &Vec) -> LinkedList< |d| day1 - Duration::days(d)).rev().collect() ).collect(); - return res + res } -- cgit v1.2.3