projects
/
advent_of_code_2022.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f41b593
)
Remove useless function
author
Greg Burri
<greg.burri@gmail.com>
Mon, 5 Dec 2022 11:09:28 +0000
(12:09 +0100)
committer
Greg Burri
<greg.burri@gmail.com>
Mon, 5 Dec 2022 11:09:28 +0000
(12:09 +0100)
src/common.rs
patch
|
blob
|
history
diff --git
a/src/common.rs
b/src/common.rs
index
aa8372d
..
e69de29
100644
(file)
--- a/
src/common.rs
+++ b/
src/common.rs
@@
-1,10
+0,0
@@
-use std::{fs, path::Path, str::FromStr};
-
-pub fn read_list_of_numbers<P, T>(file: P, sep: &str) -> Vec<T>
-where
- P: AsRef<Path>,
- T: FromStr,
- T::Err: std::fmt::Debug
-{
- fs::read_to_string(file).unwrap().split(sep).map(|line| line.trim().parse::<T>().unwrap()).collect()
-}
\ No newline at end of file