From c4f2097c7bf9c529f9fc6ef59f63908ae741c8b2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 12 Jul 2018 18:38:00 -0400 Subject: Run tools/format.py --- BUILD.gn | 8 ++++++-- src/handlers.rs | 4 +--- src/main.rs | 7 +++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 80a0a466b..e3ab4a187 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -27,7 +27,9 @@ config("deno_config") { rust_executable("deno") { source_root = "src/main.rs" extern = [ "$rust_build:libc" ] - deps = [ ":libdeno" ] + deps = [ + ":libdeno", + ] } # This target is for fast incremental development. @@ -36,7 +38,9 @@ rust_executable("deno") { rust_executable("deno_nosnapshot") { source_root = "src/main.rs" extern = [ "$rust_build:libc" ] - deps = [ ":libdeno_nosnapshot" ] + deps = [ + ":libdeno_nosnapshot", + ] } rust_staticlib("handlers") { diff --git a/src/handlers.rs b/src/handlers.rs index c826af7c0..5e386df31 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -29,9 +29,7 @@ pub extern "C" fn handle_code_fetch( println!( "handle_code_fetch. cmd_id = {} module_specifier = {} containing_file = {}", - cmd_id, - module_specifier, - containing_file + cmd_id, module_specifier, containing_file ); unimplemented!(); diff --git a/src/main.rs b/src/main.rs index 2755a3a9c..030859d5e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -122,10 +122,9 @@ fn main() { let mut d = Deno::new(); - d.execute("deno_main.js", "denoMain();").unwrap_or_else( - |err| { + d.execute("deno_main.js", "denoMain();") + .unwrap_or_else(|err| { println!("Error {}\n", err); std::process::exit(1); - }, - ); + }); } -- cgit v1.2.3