- commit
- 9fbce5c2cffe0d21d500dbd6c91efc16b840e9dd
- parent
- 7840fa7d86228f6f6644181d5f7c3048d4f00811
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-12-10 14:56
supress warnings due to unused lib functions
Diffstat
M | 2022/lib.rs | 1 | + |
1 files changed, 1 insertions, 0 deletions
diff --git a/2022/lib.rs b/2022/lib.rs
@@ -9,6 +9,7 @@ pub fn iter_input() -> impl Iterator<Item = String> { 9 9 return BufReader::new(file).lines().map(|l| l.unwrap()); 10 10 } 11 11 -1 12 #[allow(dead_code)] 12 13 pub fn split_once(s: &str, sep: char) -> Option<(&str, &str)> { 13 14 let x = s.find(sep)?; 14 15 return Some((&s[..x], &s[x+1..]));