fix clippy lints
This commit is contained in:
parent
25eba69b16
commit
075ca9a23c
|
@ -2,7 +2,6 @@ use serde::Deserialize;
|
|||
|
||||
#[derive(Clone, Deserialize)]
|
||||
pub(crate) struct Repository {
|
||||
pub(crate) name: String,
|
||||
pub(crate) full_name: String,
|
||||
pub(crate) ssh_url: String,
|
||||
}
|
||||
|
|
|
@ -106,11 +106,9 @@ where
|
|||
return Outcome::Failure((Status::BadRequest, anyhow!("couldn't verify signature")));
|
||||
}
|
||||
|
||||
let content = match Self::from_str(local_cache!(request, content)) {
|
||||
match Self::from_str(local_cache!(request, content)) {
|
||||
Ok(content) => Outcome::Success(content),
|
||||
Err(e) => Outcome::Failure((Status::BadRequest, e)),
|
||||
};
|
||||
|
||||
content
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue