summary refs log tree commit diff stats
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/lucians-luscious-lasagna/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/lucians-luscious-lasagna/src/lib.rs b/rust/lucians-luscious-lasagna/src/lib.rs
index 06ea99a..9b7ae79 100644
--- a/rust/lucians-luscious-lasagna/src/lib.rs
+++ b/rust/lucians-luscious-lasagna/src/lib.rs
@@ -1,5 +1,7 @@
+const EXPECTED_TIME: i32 = 40;
+const TIME_REQUIRED_FOR_A_LAYER: i32 = 2;
+
 pub fn expected_minutes_in_oven() -> i32 {
-    const EXPECTED_TIME: i32 = 40;
     EXPECTED_TIME
 }
 
@@ -8,11 +10,9 @@ pub fn remaining_minutes_in_oven(actual_minutes_in_oven: i32) -> i32 {
 }
 
 pub fn preparation_time_in_minutes(number_of_layers: i32) -> i32 {
-    const TIME_REQUIRED_FOR_A_LAYER: i32 = 2;
     number_of_layers * TIME_REQUIRED_FOR_A_LAYER
 }
 
-pub fn elapsed_time_in_minutes(number_of_layers: i32,
-                               actual_minutes_in_oven: i32) -> i32 {
+pub fn elapsed_time_in_minutes(number_of_layers: i32, actual_minutes_in_oven: i32) -> i32 {
     preparation_time_in_minutes(number_of_layers) + actual_minutes_in_oven
 }
32 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212