Fix clippy::redundant_slicing
This commit is contained in:
parent
fbc875dd9f
commit
b0ef5a54cc
1 changed files with 1 additions and 6 deletions
|
|
@ -39,12 +39,7 @@ impl HelperDef for ResourceHelper {
|
||||||
let path_to_root = utils::fs::path_to_root(&base_path);
|
let path_to_root = utils::fs::path_to_root(&base_path);
|
||||||
|
|
||||||
out.write(&path_to_root)?;
|
out.write(&path_to_root)?;
|
||||||
out.write(
|
out.write(self.hash_map.get(param).map(|p| &p[..]).unwrap_or(¶m))?;
|
||||||
self.hash_map
|
|
||||||
.get(¶m[..])
|
|
||||||
.map(|p| &p[..])
|
|
||||||
.unwrap_or(¶m),
|
|
||||||
)?;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue