Skip to content

Commit 4c25167

Browse files
committed
clippy fixes
1 parent e996746 commit 4c25167

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/src/tunnels/service.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,14 @@ pub fn create_service_manager(log: log::Logger, paths: &LauncherPaths) -> Servic
7474
}
7575
}
7676

77+
#[allow(dead_code)] // unused on Linux
7778
pub(crate) async fn tail_log_file(log_file: &Path) -> Result<(), AnyError> {
7879
if !log_file.exists() {
7980
println!("The tunnel service has not started yet.");
8081
return Ok(());
8182
}
8283

83-
let file = std::fs::File::open(&log_file).map_err(|e| wrap(e, "error opening log file"))?;
84+
let file = std::fs::File::open(log_file).map_err(|e| wrap(e, "error opening log file"))?;
8485
let mut rx = tailf(file, 20);
8586
while let Some(line) = rx.recv().await {
8687
match line {

0 commit comments

Comments
 (0)