Skip to content

Commit

Permalink
devenv-eval-cache: drop clone
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Feb 5, 2025
1 parent d7e896f commit 4a23633
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devenv-eval-cache/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ pub enum Input {
}

impl Input {
pub fn content_hash(&self) -> Option<String> {
pub fn content_hash(&self) -> Option<&str> {
match self {
Self::File(desc) => desc.content_hash.clone(),
Self::Env(desc) => desc.content_hash.clone(),
Self::File(desc) => desc.content_hash.as_deref(),
Self::Env(desc) => desc.content_hash.as_deref(),
}
}

Expand Down

0 comments on commit 4a23633

Please sign in to comment.