fix clippy lints

This commit is contained in:
Antoine Martin 2023-12-12 15:06:59 +01:00
parent 25eba69b16
commit 075ca9a23c
2 changed files with 2 additions and 5 deletions

View file

@ -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,
}

View file

@ -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
}
}
}