Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Jan 14, 2025
1 parent f7755cd commit 0535ada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ fn bindgen() {

#[cfg(windows)]
fn bindgen() {
let out_path = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap()).join(BINDINGS);
let out_path =
std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap_or_default()).join(BINDINGS);
windows_bindgen::bindgen([
"--out",
out_path.to_str().unwrap(),
out_path.to_str().unwrap_or_default(),
"--config",
"flatten",
"no-inner-attributes",
Expand Down
3 changes: 1 addition & 2 deletions src/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

use std::{
ffi::CStr,
io::{Error, ErrorKind, Read, Result, Write},
mem::size_of,
io::{Error, ErrorKind, Read as _, Result, Write as _},
net::IpAddr,
num::TryFromIntError,
ptr, slice,
Expand Down

0 comments on commit 0535ada

Please sign in to comment.