From 231e0d258471e6e431aa659fe47db0f55a0f399a Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Sat, 3 Dec 2022 14:21:15 +0100 Subject: [PATCH] Refactoring Signed-off-by: TuDatTr --- 2022/Cargo.toml | 4 ++++ 2022/day-1_calorie_counting/Cargo.toml | 5 ----- 2022/day-3_rucksack_reorganization/src/lib.rs | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) 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";