Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Nov 26, 2024
1 parent 397f47e commit aff4d11
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/node/da_clients/src/eigen/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,26 @@ impl Verifier {
let url_g1 = format!("{}{}", link, "/g1.point");
let response = reqwest::get(url_g1)
.await
.map_err(|_| VerificationError::KzgError)?;
.map_err(|_| VerificationError::LinkError)?;
let path = Path::new("./g1.point");
let mut file = File::create(&path).map_err(|_| VerificationError::KzgError)?;
let mut file = File::create(path).map_err(|_| VerificationError::LinkError)?;
let content = response
.bytes()
.await
.map_err(|_| VerificationError::KzgError)?;
copy(&mut content.as_ref(), &mut file).map_err(|_| VerificationError::KzgError)?;
.map_err(|_| VerificationError::LinkError)?;
copy(&mut content.as_ref(), &mut file).map_err(|_| VerificationError::LinkError)?;

let url_g2 = format!("{}{}", link, "/g2.point.powerOf2");
let response = reqwest::get(url_g2)
.await
.map_err(|_| VerificationError::KzgError)?;
.map_err(|_| VerificationError::LinkError)?;
let path = Path::new("./g2.point.powerOf2");
let mut file = File::create(&path).map_err(|_| VerificationError::KzgError)?;
let mut file = File::create(path).map_err(|_| VerificationError::LinkError)?;
let content = response
.bytes()
.await
.map_err(|_| VerificationError::KzgError)?;
copy(&mut content.as_ref(), &mut file).map_err(|_| VerificationError::KzgError)?;
.map_err(|_| VerificationError::LinkError)?;
copy(&mut content.as_ref(), &mut file).map_err(|_| VerificationError::LinkError)?;

Ok(".".to_string())
}
Expand Down

0 comments on commit aff4d11

Please sign in to comment.