Skip to content

Commit

Permalink
Fix linux-specific issues
Browse files Browse the repository at this point in the history
  • Loading branch information
esarver committed Aug 22, 2024
1 parent 8648403 commit 723ba81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
};

#[cfg(target_os = "linux")]
use std::path::PathBuff;
use std::path::PathBuf;

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

Expand Down Expand Up @@ -43,7 +43,7 @@ pub fn is_visa_installed() -> bool {
return false;
};
for p in search_paths.split(":") {
let Ok(dir) = Path::new(&p).read_dir() else {
let Ok(mut dir) = Path::new(&p).read_dir() else {
return false;
};
if dir
Expand Down

0 comments on commit 723ba81

Please sign in to comment.