Format and clippy
This commit is contained in:
parent
466b4cb994
commit
bc4a898c0a
12 changed files with 17 additions and 27 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue