summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-09-04 18:57:17 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-09-05 22:27:47 -0400
commit32f0c37a422ff3cc6bc448caf279478ef8a893bf (patch)
tree1a98e2535bf6a111b0828516772bcb664133d8aa
parente4990804fad279f055decf70c794ea5f22372641 (diff)
Format
-rw-r--r--README.md8
-rw-r--r--js/os_test.ts4
-rw-r--r--src/handlers.rs6
3 files changed, 12 insertions, 6 deletions
diff --git a/README.md b/README.md
index 0efb02a10..db50a0dbb 100644
--- a/README.md
+++ b/README.md
@@ -93,9 +93,15 @@ To build:
# Build.
./tools/build.py
- # Run
+ # Run.
./out/debug/deno tests/002_hello.ts
+ # Test.
+ ./tools/test.py
+
+ # Format code.
+ ./tools/format.py
+
Other useful commands:
# Call ninja manually.
diff --git a/js/os_test.ts b/js/os_test.ts
index 163a84376..3c1d926d8 100644
--- a/js/os_test.ts
+++ b/js/os_test.ts
@@ -206,8 +206,8 @@ testPerm({ write: false }, function mkdDirSyncPerm() {
testPerm({ write: true }, function renameSync() {
const testDir = deno.makeTempDirSync() + "/test-rename";
- const oldpath = testDir + "/oldpath"
- const newpath = testDir + "/newpath"
+ const oldpath = testDir + "/oldpath";
+ const newpath = testDir + "/newpath";
deno.mkdirSync(oldpath);
deno.renameSync(oldpath, newpath);
const newPathInfo = deno.statSync(newpath);
diff --git a/src/handlers.rs b/src/handlers.rs
index fe82c1c03..141cc5d13 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -676,9 +676,9 @@ fn handle_timer_clear(
}
fn handle_rename_sync(
- d: *const DenoC,
- base: msg::Base,
- _builder: &mut FlatBufferBuilder,
+ d: *const DenoC,
+ base: msg::Base,
+ _builder: &mut FlatBufferBuilder,
) -> HandlerResult {
let msg = base.msg_as_rename_sync().unwrap();
let oldpath = msg.oldpath().unwrap();