diff --git a/crates/prettier/src/prettier.rs b/crates/prettier/src/prettier.rs index 79fef40908c3589a192bf4a57e56e84eb68846ef..53e3101a3bebef89f515ed42864a6d806a9deeb5 100644 --- a/crates/prettier/src/prettier.rs +++ b/crates/prettier/src/prettier.rs @@ -93,7 +93,7 @@ impl Prettier { ) })?; (worktree_root_data.unwrap_or_else(|| { - panic!("cannot query prettier for non existing worktree root at {worktree_root_data:?}") + panic!("cannot query prettier for non existing worktree root at {worktree_root:?}") }), None) } else { let full_starting_path = worktree_root.join(&starting_path.starting_path); @@ -106,7 +106,7 @@ impl Prettier { })?; ( worktree_root_data.unwrap_or_else(|| { - panic!("cannot query prettier for non existing worktree root at {worktree_root_data:?}") + panic!("cannot query prettier for non existing worktree root at {worktree_root:?}") }), start_path_data, ) diff --git a/crates/prettier2/src/prettier2.rs b/crates/prettier2/src/prettier2.rs index ed22d23157ffba7c239bd55241fb16cb8c337fa8..a0eefdd6dbe326b48d40d75d8a8e4d963e7a662b 100644 --- a/crates/prettier2/src/prettier2.rs +++ b/crates/prettier2/src/prettier2.rs @@ -93,7 +93,7 @@ impl Prettier { ) })?; (worktree_root_data.unwrap_or_else(|| { - panic!("cannot query prettier for non existing worktree root at {worktree_root_data:?}") + panic!("cannot query prettier for non existing worktree root at {worktree_root:?}") }), None) } else { let full_starting_path = worktree_root.join(&starting_path.starting_path); @@ -106,7 +106,7 @@ impl Prettier { })?; ( worktree_root_data.unwrap_or_else(|| { - panic!("cannot query prettier for non existing worktree root at {worktree_root_data:?}") + panic!("cannot query prettier for non existing worktree root at {worktree_root:?}") }), start_path_data, )