remove 51 ToString trait
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
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 {
|
||||
fn to_digits(&self) -> Vec<u8>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user