Skip to content

Commit

Permalink
fix(common): drop unnecessary lifetime and reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis committed Dec 11, 2023
1 parent e592875 commit 0cd8675
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/src/indexer_service/http/indexer_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub trait IndexerServiceResponse {
type Error: Error;

fn is_attestable(&self) -> bool;
fn as_str<'a>(&'a self) -> Result<&'a str, Self::Error>;
fn as_str(&self) -> Result<&str, Self::Error>;
fn finalize(self, attestation: Option<Attestation>) -> Self::Data;
}

Expand Down
2 changes: 1 addition & 1 deletion common/src/indexer_service/http/request_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ where
let res = response
.as_str()
.map_err(|_| IndexerServiceError::FailedToSignAttestation)?;
Some(signer.create_attestation(&req, &res))
Some(signer.create_attestation(&req, res))
}
};

Expand Down

0 comments on commit 0cd8675

Please sign in to comment.