diff options
Diffstat (limited to 'cli/permissions.rs')
-rw-r--r-- | cli/permissions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/permissions.rs b/cli/permissions.rs index dd70b067b..bd9b8d950 100644 --- a/cli/permissions.rs +++ b/cli/permissions.rs @@ -478,7 +478,7 @@ fn permission_prompt(message: &str) -> bool { PERMISSION_EMOJI, message ); // print to stderr so that if deno is > to a file this is still displayed. - eprint!("{}", colors::bold(msg)); + eprint!("{}", colors::bold(&msg)); loop { let mut input = String::new(); let stdin = io::stdin(); @@ -494,7 +494,7 @@ fn permission_prompt(message: &str) -> bool { // If we don't get a recognized option try again. let msg_again = format!("Unrecognized option '{}' [g/d (g = grant, d = deny)] ", ch); - eprint!("{}", colors::bold(msg_again)); + eprint!("{}", colors::bold(&msg_again)); } }; } @@ -524,7 +524,7 @@ fn permission_prompt(_message: &str) -> bool { fn log_perm_access(message: &str) { debug!( "{}", - colors::bold(format!("{}️ Granted {}", PERMISSION_EMOJI, message)) + colors::bold(&format!("{}️ Granted {}", PERMISSION_EMOJI, message)) ); } |