Add hooks to cli/repl (#5479)

* Add hooks to cli/repl

* Clippy

* Clippy
This commit is contained in:
JT
2022-05-09 07:28:39 +12:00
committed by GitHub
parent a61d09222f
commit 3a35bf7d4e
6 changed files with 134 additions and 5 deletions

View File

@ -966,7 +966,7 @@ mod test {
.and_then(|p| match p.components().next().unwrap() {
Component::Prefix(prefix_component) => {
let path = Path::new(prefix_component.as_os_str()).join("*");
Some(path.to_path_buf())
Some(path)
}
_ => panic!("no prefix in this path"),
})