@@ -0,0 +1,6 @@
+[package]
+name = "task1"
+version = "0.1.0"
+authors = ["Joshua Rutschmann <joshua.rutschmann@gmx.de>"]
+
+[dependencies]
@@ -1,3 +1,3 @@
pub fn is_leap_year(year: i32) -> bool {
- unimplemented!();
+ (year % 4 == 0 && year % 100 != 0) || year % 400 == 0
}