Skip to content

Commit

Permalink
Fix for clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rpschoenburg committed Jan 6, 2025
1 parent 884f948 commit 27df257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/src/repositories/diffs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ pub fn diff(
return Err(OxenError::basic_str(error));
};

let file_node = Some(
let (file_node,) = (
repositories::entries::get_file(&repository, &commit, &path_1)?.ok_or_else(|| {
OxenError::ResourceNotFound(
format!("Error: file {} not committed", path_1.as_ref().display()).into(),
)
})?,
);

let hash = file_node.unwrap().hash.to_string();
let hash = file_node.hash.to_string();

let committed_file = util::fs::version_path_from_node(&repository, &hash, &path_1);
// log::debug!("committed file: {:?}", committed_file);
Expand Down

0 comments on commit 27df257

Please sign in to comment.