Skip to content

Commit

Permalink
Merge pull request #130 from de-vri-es/remove-legacy-numeric-constants
Browse files Browse the repository at this point in the history
Remove use of legacy numeric constants, use associated constants.
  • Loading branch information
allan2 authored Dec 5, 2024
2 parents 555334c + 732e5fb commit 518fda8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
clippy::return_self_not_must_use,
clippy::unreadable_literal,
clippy::upper_case_acronyms,
// remove later
clippy::legacy_numeric_constants
)]

//! A cross-platform Rust API for memory mapped buffers.
Expand Down Expand Up @@ -72,7 +70,6 @@ use std::fmt;
#[cfg(not(any(unix, windows)))]
use std::fs::File;
use std::io::{Error, ErrorKind, Result};
use std::isize;
use std::mem;
use std::ops::{Deref, DerefMut};
#[cfg(unix)]
Expand Down
2 changes: 0 additions & 2 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ impl MmapInner {
}

fn adjust_mmap_params(len: usize, alignment: usize) -> io::Result<(usize, usize)> {
use std::isize;

// Rust's slice cannot be larger than isize::MAX.
// See https://doc.rust-lang.org/std/slice/fn.from_raw_parts.html
//
Expand Down

0 comments on commit 518fda8

Please sign in to comment.