diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-09-06 02:34:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 02:34:02 +0200 |
commit | c821e8f2f1fb8ad5e9eb00854277cafc8c80b2f5 (patch) | |
tree | c429a3c2707a4047fb512443a8468b7e15e5730d /cli/bench/main.rs | |
parent | 849431eb1d112d1f79f4a327830dc1a5bf22dd47 (diff) |
Move JSON ops to deno_core (#7336)
Diffstat (limited to 'cli/bench/main.rs')
-rw-r--r-- | cli/bench/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs index b2ae59d4f..e8d4b298d 100644 --- a/cli/bench/main.rs +++ b/cli/bench/main.rs @@ -11,12 +11,12 @@ use std::{ mod http; mod throughput; -fn read_json(filename: &str) -> Result<serde_json::Value> { +fn read_json(filename: &str) -> Result<Value> { let f = fs::File::open(filename)?; Ok(serde_json::from_reader(f)?) } -fn write_json(filename: &str, value: &serde_json::Value) -> Result<()> { +fn write_json(filename: &str, value: &Value) -> Result<()> { let f = fs::File::create(filename)?; serde_json::to_writer(f, value)?; Ok(()) |