cargo fix the project

Make use of clippy and rustfmt

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain 2021-01-21 16:34:59 +05:30
commit 2e4b929fb5
2 changed files with 30 additions and 17 deletions

View file

@ -21,7 +21,7 @@ impl<'a> PasteId<'a> {
.collect();
PasteId(Cow::Owned(id))
}
}
}
impl<'a> FromParam<'a> for PasteId<'a> {
@ -30,7 +30,7 @@ impl<'a> FromParam<'a> for PasteId<'a> {
fn from_param(param: &'a RawStr) -> Result<Self, Self::Error> {
match valid_id(param) {
true => Ok(PasteId(Cow::Borrowed(param))),
false => Err(param)
false => Err(param),
}
}
}