From 1a20120c25351657e47fde77bb2ee40252a63bc0 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Sun, 10 Aug 2025 00:37:22 +0200 Subject: [PATCH] fix: use generic AsRef for shell setup parameter --- src/shell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() ); }