Skip to content

Commit

Permalink
Rectify some clippyisms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob McWhirter authored and bobmcwhirter committed Oct 16, 2023
1 parent 5afa63f commit f1f8200
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions collector/osv/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ impl OsvUrl {
}

pub fn querybatch(&self) -> Result<Url, url::ParseError> {
Ok(Url::parse(&format!("{}/querybatch", self.0))?)
Url::parse(&format!("{}/querybatch", self.0))
}

pub fn vuln(&self, vuln_id: &str) -> anyhow::Result<Url> {
Ok(Url::parse(&format!("{}/vulns/{}", self.0, vuln_id))?)
pub fn vuln(&self, vuln_id: &str) -> Result<Url, url::ParseError> {
Url::parse(&format!("{}/vulns/{}", self.0, vuln_id))
}
}

Expand Down
2 changes: 1 addition & 1 deletion exhort/api/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async fn analyze(state: web::Data<AppState>, request: web::Json<AnalyzeRequest>)
.collectorist_client
.collect_packages(request.purls.clone())
.await
.map_err(|e| Error::from(e))?;
.map_err(Error::from)?;

let mut response = AnalyzeResponse::new();

Expand Down

0 comments on commit f1f8200

Please sign in to comment.