diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-06-24 19:10:21 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-24 10:10:21 -0700 |
commit | 70a9859adce478180a15d43877fe239a44379556 (patch) | |
tree | 2ff6108cadc265bf5b80215dbcf4de9f134e7ef9 /cli/main.rs | |
parent | 3c81cca0374c96ff4759ec9305eb5529dd29a4d8 (diff) |
refactor: use Path/PathBuf in deno dir (#2559)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/main.rs b/cli/main.rs index 7965b4edf..05748f5ab 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -107,7 +107,11 @@ pub fn print_file_info( &worker.state, module_specifier, ).and_then(move |out| { - println!("{} {}", ansi::bold("local:".to_string()), &(out.filename)); + println!( + "{} {}", + ansi::bold("local:".to_string()), + out.filename.to_str().unwrap() + ); println!( "{} {}", @@ -119,7 +123,7 @@ pub fn print_file_info( println!( "{} {}", ansi::bold("compiled:".to_string()), - out.maybe_output_code_filename.as_ref().unwrap(), + out.maybe_output_code_filename.unwrap().to_str().unwrap(), ); } @@ -127,7 +131,7 @@ pub fn print_file_info( println!( "{} {}", ansi::bold("map:".to_string()), - out.maybe_source_map_filename.as_ref().unwrap() + out.maybe_source_map_filename.unwrap().to_str().unwrap() ); } |