From c821e8f2f1fb8ad5e9eb00854277cafc8c80b2f5 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sun, 6 Sep 2020 02:34:02 +0200 Subject: Move JSON ops to deno_core (#7336) --- cli/bench/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/bench') 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 { +fn read_json(filename: &str) -> Result { 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(()) -- cgit v1.2.3