diff --git a/2022/Cargo.toml b/2022/Cargo.toml index 16e8659..ba4b558 100644 --- a/2022/Cargo.toml +++ b/2022/Cargo.toml @@ -5,3 +5,7 @@ members = [ "day-3_rucksack_reorganization", ] +[profile.release] +lto = true +codegen-units = 1 +debug = 1 \ No newline at end of file diff --git a/2022/day-1_calorie_counting/Cargo.toml b/2022/day-1_calorie_counting/Cargo.toml index 47e58cf..619659e 100644 --- a/2022/day-1_calorie_counting/Cargo.toml +++ b/2022/day-1_calorie_counting/Cargo.toml @@ -3,11 +3,6 @@ name = "day-1_calorie_counting" version = "0.1.0" edition = "2021" -[profile.release] -lto = true -codegen-units = 1 -debug = 1 - [lib] name = "calorie_counting_lib" path = "src/lib.rs" diff --git a/2022/day-3_rucksack_reorganization/src/lib.rs b/2022/day-3_rucksack_reorganization/src/lib.rs index 45d9778..3cf5d5f 100644 --- a/2022/day-3_rucksack_reorganization/src/lib.rs +++ b/2022/day-3_rucksack_reorganization/src/lib.rs @@ -55,7 +55,6 @@ pub fn task_3b (content: &str) -> u64 { #[cfg(test)] mod tests { use super::*; - use common::create_file; const CONTENT: &str = "vJrwpWtwJgWrhcsFMMfFFhFp\njqHRNqRjqzjGDLGLrsFMfFZSrLrFZsSL\nPmmdzqPrVvPwwTWBwg\nwMqvLMZHhHMvwLHjbvcjnnSBnvTQFn\nttgJtRGJQctTZtZT\nCrZsJsPPZsGzwwsLwLmpwMDw";