diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-08-22 22:30:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 22:30:14 -0700 |
commit | bc467b265fbe06ace24f5d9536bd8eb36ae4a601 (patch) | |
tree | 6c1761c852398a63fe31fc912841b449fe3851c3 /cli/ops/utils.rs | |
parent | 47c216317f8eb5bf277663a732a79f6b07ba79ef (diff) |
introduce JSON serialization for ops (#2799)
Converts env(), exit(), execPath(), utime() and utimeSync() to use JSON
instead of flatbuffers.
Diffstat (limited to 'cli/ops/utils.rs')
-rw-r--r-- | cli/ops/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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: F) -> Poll<Buf, ErrBox> +pub fn convert_blocking<F>(f: F) -> Poll<Buf, ErrBox> where F: FnOnce() -> Result<Buf, ErrBox>, { |