diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-13 19:18:01 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-13 19:18:01 +0200 |
commit | 2bbe1bbcbb6552915bb1238a61cfb70e5da24342 (patch) | |
tree | 23b77e0471b7c73dc8c802b2230111d60ad3884d /src | |
parent | a174166b9f3d9ba2bed09bf2a7c0ff80188ca6a2 (diff) | |
download | obnam-benchmark-2bbe1bbcbb6552915bb1238a61cfb70e5da24342.tar.gz |
unnecessary borrow
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon.rs b/src/daemon.rs index f615333..10c197c 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -136,7 +136,7 @@ impl DaemonManager { } cmd.push_str(String::from_utf8_lossy(arg.as_bytes()).to_string().as_ref()); } - let err = read(&stderr).map_err(DaemonError::Stderr)?; + let err = read(stderr).map_err(DaemonError::Stderr)?; let err = String::from_utf8_lossy(&err).into_owned(); Err(DaemonError::Timeout(self.timeout.as_millis(), cmd, err)) } |