Skip to content

Commit

Permalink
CI: fix rust-nightly static checks
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Porter <[email protected]>
  • Loading branch information
portersrc committed Feb 14, 2024
1 parent 2fc4924 commit 2d0dd69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions image-rs/src/resource/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ lazy_static::lazy_static! {
/// - `SCHEME`: `file` string, to distinguish different uri scheme
/// - `get_resource()`: get resource from the uri
#[async_trait]
#[allow(dead_code)]
trait Protocol: Send + Sync {
async fn get_resource(&mut self, uri: &str) -> Result<Vec<u8>>;
}
Expand Down
6 changes: 3 additions & 3 deletions image-rs/src/signature/image/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ impl Digest {
}
}

impl ToString for Digest {
fn to_string(&self) -> String {
format!("{}:{}", self.algorithm, self.value)
impl fmt::Display for Digest {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}:{}", self.algorithm, self.value)
}
}

Expand Down

0 comments on commit 2d0dd69

Please sign in to comment.