parse().unwrap() -> into()

This commit is contained in:
debris
2016-08-08 11:18:48 +02:00
parent e9b42d59e8
commit 8269887949
5 changed files with 24 additions and 18 deletions

View File

@@ -1129,6 +1129,12 @@ macro_rules! construct_uint {
Ok(())
}
}
impl From<&'static str> for $name {
fn from(s: &'static str) -> Self {
s.parse().unwrap()
}
}
);
}