Format and clippy

This commit is contained in:
Adrian Heine 2019-10-02 23:38:22 +02:00
parent 466b4cb994
commit bc4a898c0a
12 changed files with 17 additions and 27 deletions

View file

@ -3,7 +3,7 @@ pub struct Resource(pub String, pub String);
impl<'a> Resource {
pub fn new<A: Into<String>, B: Into<String>>(rtype: A, value: B) -> Self {
Resource(rtype.into(), value.into())
Self(rtype.into(), value.into())
}
pub fn get_type(&self) -> &str {