diff --git a/unixfs/src/dir/builder/iter.rs b/unixfs/src/dir/builder/iter.rs index 0a29e588..17edf4e2 100644 --- a/unixfs/src/dir/builder/iter.rs +++ b/unixfs/src/dir/builder/iter.rs @@ -393,7 +393,7 @@ fn update_full_path( if let Some(name) = name { if !full_path.is_empty() { - full_path.push_str("/"); + full_path.push('/'); } full_path.push_str(name); *old_depth += 1;