remove 51 ToString trait

This commit is contained in:
timeshifter
2022-08-14 21:17:56 +02:00
parent a43cdc4494
commit a4266dff8c
-10
View File
@@ -76,16 +76,6 @@ fn get_longest(mut vec: Vec<Vec<Int>>, print: bool) -> Vec<Int> {
vec.into_iter().find(|v| v.len() == length).unwrap() vec.into_iter().find(|v| v.len() == length).unwrap()
} }
trait ToString {
fn to_string(&self) -> String;
}
impl ToString for Vec<u8> {
fn to_string(&self) -> String {
self.iter().map(|d| d.to_string()).collect()
}
}
trait ToDigits { trait ToDigits {
fn to_digits(&self) -> Vec<u8>; fn to_digits(&self) -> Vec<u8>;
} }