Skip to content

Commit 723ba81

Browse files
committed
Fix linux-specific issues
1 parent 8648403 commit 723ba81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/protocol.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
};
77

88
#[cfg(target_os = "linux")]
9-
use std::path::PathBuff;
9+
use std::path::PathBuf;
1010

1111
use crate::{error::Result, instrument::Info, InstrumentError, Interface};
1212

@@ -43,7 +43,7 @@ pub fn is_visa_installed() -> bool {
4343
return false;
4444
};
4545
for p in search_paths.split(":") {
46-
let Ok(dir) = Path::new(&p).read_dir() else {
46+
let Ok(mut dir) = Path::new(&p).read_dir() else {
4747
return false;
4848
};
4949
if dir

0 commit comments

Comments
 (0)