diff options
author | Bartek Iwańczuk <biwanczuk@gmail.com> | 2023-01-03 17:30:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 17:30:15 +0100 |
commit | 7a5b6a3261b9e5393e01176f25b56f4d69b3abda (patch) | |
tree | 69fb0d7bdf681c320a0ac0db62a618d900c6b6d1 | |
parent | 501472f06ba52d46611bd1ffd8bf4fe9de94425d (diff) |
fix(permissions): fix italic font in permission prompt (#17249)
-rw-r--r-- | runtime/permissions/prompter.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/permissions/prompter.rs b/runtime/permissions/prompter.rs index d72d78749..a73898835 100644 --- a/runtime/permissions/prompter.rs +++ b/runtime/permissions/prompter.rs @@ -201,11 +201,8 @@ impl PermissionPrompter for TtyPrompter { if let Some(api_name) = api_name { eprintln!(" ├ Requested by `{}` API", api_name); } - let msg = format!( - " ├ Run again with --allow-{} to bypass this prompt.", - name - ); - eprintln!("{}", colors::italic(&msg)); + let msg = format!("Run again with --allow-{} to bypass this prompt.", name); + eprintln!(" ├ {}", colors::italic(&msg)); eprint!(" └ {}", colors::bold("Allow?")); eprint!(" {} > ", OPTS); let value = loop { |