From aff4d112fb3c0896dc35c1a96d9fed06bbeffb1c Mon Sep 17 00:00:00 2001 From: Gianbelinche <39842759+gianbelinche@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:36:33 -0300 Subject: [PATCH] Fix clippy --- core/node/da_clients/src/eigen/verifier.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/node/da_clients/src/eigen/verifier.rs b/core/node/da_clients/src/eigen/verifier.rs index 0c78d5a49c5..d0e85c5eb7a 100644 --- a/core/node/da_clients/src/eigen/verifier.rs +++ b/core/node/da_clients/src/eigen/verifier.rs @@ -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()) }