Skip to content

Commit

Permalink
lints: fix warning for new rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
XOR-op committed Nov 16, 2023
1 parent 05d2fac commit a9a8457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boltconn/src/platform/sys/linux_sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ pub fn bind_to_device(fd: c_int, dst_iface_name: &str) -> io::Result<()> {
pub struct SystemDnsHandle {}

impl SystemDnsHandle {
const PATH: &str = "/tmp/fake_resolv.conf";
const RESOLV: &str = "/etc/resolv.conf";
const PATH: &'static str = "/tmp/fake_resolv.conf";
const RESOLV: &'static str = "/etc/resolv.conf";
pub fn new(ip: Ipv4Addr) -> io::Result<Self> {
let mut output = File::create(Self::PATH).unwrap_or(
OpenOptions::new()
Expand Down

0 comments on commit a9a8457

Please sign in to comment.