refactor: util functions take slices instead of heap values (#6547)

This commit is contained in:
Valentin Anger 2020-06-29 14:17:37 +02:00 committed by GitHub
parent 0374eadcf7
commit db36857288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 118 additions and 152 deletions

View file

@ -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()
);
}