where possible, pass slices instead of &Vec or &String (clippy::ptr_arg)
This commit is contained in:
@@ -153,7 +153,7 @@ impl<T: Copy + Eq + Hash + std::fmt::Debug, PATH: Default> RefTracking<T, PATH>
|
||||
}
|
||||
|
||||
/// Format a path
|
||||
fn write_path(out: &mut String, path: &Vec<PathElem>) {
|
||||
fn write_path(out: &mut String, path: &[PathElem]) {
|
||||
use self::PathElem::*;
|
||||
|
||||
for elem in path.iter() {
|
||||
|
||||
Reference in New Issue
Block a user