Skip to content

Commit

Permalink
shut up rust analyzer
Browse files Browse the repository at this point in the history
disables RA errors in VSCode when rust-analyzer.cargo.features = "all" is set
  • Loading branch information
dheijl committed Nov 5, 2024
1 parent 549496a commit 8bfebc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/local_ip_address.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use if_addrs::IfAddr;
#[cfg(feature = "cli")]
#[cfg(not(feature = "gui"))]
use local_ip_address::local_ip;
use std::net::IpAddr;
#[cfg(feature = "gui")]
Expand All @@ -24,7 +24,7 @@ pub fn get_local_addr() -> Option<IpAddr> {
}
}

#[cfg(feature = "cli")]
#[cfg(not(feature = "gui"))]
pub fn get_local_addr() -> Result<IpAddr, local_ip_address::Error> {
local_ip()
}
Expand Down

0 comments on commit 8bfebc6

Please sign in to comment.