Skip to content

Commit 205ba1c

Browse files
committed
Apply code review comment
1 parent ad03764 commit 205ba1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hook.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@ mod tests {
212212
fs::create_dir(temp_dir.join(".shadowenv.d")).unwrap();
213213
let result = load_trusted_source(temp_dir);
214214
assert!(result.is_err());
215-
assert_eq!(format!("directory: {} contains untrusted shadowenv program: `shadowenv help trust` to learn more.", path), result.err().unwrap().to_string())
215+
assert_eq!(format!("directory: '{}' contains untrusted shadowenv program: `shadowenv help trust` to learn more.", path), result.err().unwrap().to_string())
216216
}
217217
}

src/trust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct NoShadowenv;
1717

1818
#[derive(Fail, Debug)]
1919
#[fail(
20-
display = "directory: {} contains untrusted shadowenv program: `shadowenv help trust` to learn more.",
20+
display = "directory: '{}' contains untrusted shadowenv program: `shadowenv help trust` to learn more.",
2121
not_trusted_dir_path
2222
)]
2323
pub struct NotTrusted {

0 commit comments

Comments
 (0)