cargo fix the project
Make use of clippy and rustfmt Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
parent
5cb34d6770
commit
2e4b929fb5
2 changed files with 30 additions and 17 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue