From ed0d85f3f30f5c5a885de5a5087904a7e969bac0 Mon Sep 17 00:00:00 2001 From: rami3l Date: Sat, 19 Dec 2020 07:38:45 +0800 Subject: [PATCH] refactor: fix format --- src/exec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec.rs b/src/exec.rs index 373ef4f4747..9447e24ad5b 100644 --- a/src/exec.rs +++ b/src/exec.rs @@ -348,7 +348,7 @@ pub fn is_exe(name: &str, path: &str) -> bool { || (!name.is_empty() && which::which(name).is_ok()) } -/// Helper function to turn an `AsyncRead` to a `Stream` +/// Helper function to turn an `AsyncRead` to a `Stream`. // See also: https://stackoverflow.com/a/59327560 pub fn into_bytes(r: R) -> impl Stream> { FramedRead::new(r, BytesCodec::new()).map_ok(|bytes| bytes.freeze())