diff --git a/src/shell.rs b/src/shell.rs index 7c8684d..c207dfd 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -1,6 +1,6 @@ use std::path::Path; -pub fn setup_shell(code_root: &Path) { +pub fn setup_shell>(code_root: T) { println!( r#" h() {{ @@ -10,6 +10,6 @@ h() {{ return $_h_ret }} "#, - code_root.display() + code_root.as_ref().display() ); }