Fix clippy lints

This commit is contained in:
nora 2024-04-29 19:39:30 +02:00
parent 60de4d5ba8
commit bd90f5c978
5 changed files with 22 additions and 22 deletions

View file

@ -65,5 +65,5 @@ async fn do_request(req: RequestBuilder) -> Result<Response> {
return Err(err).wrap_err(text);
}
Ok(res.error_for_status().wrap_err("failed to get class")?)
res.error_for_status().wrap_err("failed to get class")
}

View file

@ -29,7 +29,7 @@ impl DataSource for ClassDataSource {
let class = self
.client
.get_class(&model.id.expect_known(AttrPath::attr("id"))?)
.get_class(model.id.expect_known(AttrPath::attr("id"))?)
.await
.wrap_err("failed to get class")
.eyre_to_tf()?;