diff options
author | Valentin Anger <syrupthinker@gryphno.de> | 2020-06-29 14:17:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 14:17:37 +0200 |
commit | db36857288609858ada259444509a31637980ce3 (patch) | |
tree | 9fc83f32408941bdf75d803b4b0dbffe297c10f2 /cli/http_util.rs | |
parent | 0374eadcf7ecb054dae1b1587843a2006fdf4c2d (diff) |
refactor: util functions take slices instead of heap values (#6547)
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r-- | cli/http_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs index b528f411f..5b434a276 100644 --- a/cli/http_util.rs +++ b/cli/http_util.rs @@ -121,7 +121,7 @@ pub fn fetch_once( if let Some(warning) = headers.get("X-Deno-Warning") { eprintln!( "{} {}", - crate::colors::yellow("Warning".to_string()), + crate::colors::yellow("Warning"), warning.to_str().unwrap() ); } |