From bc467b265fbe06ace24f5d9536bd8eb36ae4a601 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 22 Aug 2019 22:30:14 -0700 Subject: introduce JSON serialization for ops (#2799) Converts env(), exit(), execPath(), utime() and utimeSync() to use JSON instead of flatbuffers. --- cli/ops/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/ops/utils.rs') diff --git a/cli/ops/utils.rs b/cli/ops/utils.rs index a9b0b442c..95b13b77a 100644 --- a/cli/ops/utils.rs +++ b/cli/ops/utils.rs @@ -19,7 +19,7 @@ pub fn empty_buf() -> Buf { // This is just type conversion. Implement From trait? // See https://github.com/tokio-rs/tokio/blob/ffd73a64e7ec497622b7f939e38017afe7124dc4/tokio-fs/src/lib.rs#L76-L85 -fn convert_blocking(f: F) -> Poll +pub fn convert_blocking(f: F) -> Poll where F: FnOnce() -> Result, { -- cgit v1.2.3