Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Carl Jones <djonesoa@amazon.com>
  • Loading branch information
dannycjones committed Oct 25, 2024
1 parent 7c823af commit 409532b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mountpoint-s3/tests/reftests/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use tracing::trace;
#[derive(Debug)]
pub enum File {
Local,
Remote(MockObject),
Remote(Box<MockObject>),
}

#[derive(Debug)]
Expand Down Expand Up @@ -306,7 +306,7 @@ fn build_reference<'a>(flat: impl Iterator<Item = (&'a String, &'a MockObject)>)
#[derive(Debug)]
enum RefNode {
Directory(Rc<RefCell<BTreeMap<String, RefNode>>>),
File(MockObject),
File(Box<MockObject>),
}

impl RefNode {
Expand Down Expand Up @@ -356,7 +356,7 @@ fn build_reference<'a>(flat: impl Iterator<Item = (&'a String, &'a MockObject)>)
if valid_inode_name(file_name) && should_create {
leaf_dir
.borrow_mut()
.insert(file_name.to_string(), RefNode::File(file.clone()));
.insert(file_name.to_string(), RefNode::File(Box::new(file.clone())));
}
}

Expand Down

0 comments on commit 409532b

Please sign in to comment.