diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-12 18:38:00 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-13 14:38:50 -0400 |
| commit | c4f2097c7bf9c529f9fc6ef59f63908ae741c8b2 (patch) | |
| tree | 42d797c59234980a2cdfae2cea603722d6543a06 | |
| parent | 691a375eaba78644f03ce0c746d905b7e8a4e709 (diff) | |
Run tools/format.py
| -rw-r--r-- | BUILD.gn | 8 | ||||
| -rw-r--r-- | src/handlers.rs | 4 | ||||
| -rw-r--r-- | src/main.rs | 7 |
3 files changed, 10 insertions, 9 deletions
@@ -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); - }, - ); + }); } |
