Skip to content

Commit 65295ba

Browse files
author
Brian Obot
committed
Add allow attribute to some unused functions to suppress compiler warnings
1 parent db88855 commit 65295ba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

_2024/day_1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::cmp;
22
use std::fs;
33

44

5+
#[allow(dead_code)]
56
fn calculate_total_distance_diff(locations_a: Vec<u32>, locations_b: Vec<u32>) -> u32 {
67
let mut location_a = locations_a.clone();
78
let mut location_b = locations_b.clone();

_2025/day_5.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ fn get_total_fresh_items(fresh_ids: Vec<String>) -> i64 {
4949
total
5050
}
5151

52+
#[allow(dead_code)]
5253
fn get_total_available_fresh_items(fresh_ids: Vec<String>, available_ids: Vec<String>) -> i32 {
5354
let mut total = 0;
5455

0 commit comments

Comments
 (0)