Skip to content

Commit

Permalink
fix(sys): remove needless integer literal cast
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Feb 21, 2024
1 parent f3a10a1 commit a425dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ort-sys/src/internal/dirs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ mod unix {
#[cfg(not(any(target_os = "android", target_os = "ios", target_os = "emscripten")))]
unsafe fn fallback() -> Option<OsString> {
let amt = match sysconf(SC_GETPW_R_SIZE_MAX) {
n if n < 0 => 512 as usize,
n if n < 0 => 512,
n => n as usize
};
let mut buf = Vec::with_capacity(amt);
Expand Down

0 comments on commit a425dc7

Please sign in to comment.