We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 474849c commit 9c09634Copy full SHA for 9c09634
src/fat.rs
@@ -855,7 +855,7 @@ impl<'a> Filesystem<'a> {
855
let mut p = [0_u8; 256];
856
let mut residual = if !is_absolute_path(path) {
857
p[0] = b'/';
858
- p[1..1 + len].clone_from_slice(path[..len].as_bytes());
+ p[1..1 + len].clone_from_slice(&path.as_bytes()[..len]);
859
core::str::from_utf8(&p).unwrap()
860
} else {
861
path
0 commit comments