Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extern crate #131

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions examples/cat.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate memmap2;

use std::env;
use std::fs::File;
use std::io::{self, Write};
Expand Down
21 changes: 0 additions & 21 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,6 @@ impl MmapOptions {
/// # Example
///
/// ```
/// # extern crate memmap2;
/// # extern crate tempfile;
/// #
/// use std::fs::OpenOptions;
/// use std::path::PathBuf;
///
Expand Down Expand Up @@ -680,9 +677,6 @@ impl Mmap {
/// # Example
///
/// ```
/// # extern crate memmap2;
/// # extern crate tempfile;
/// #
/// use memmap2::Mmap;
/// use std::ops::DerefMut;
/// use std::io::Write;
Expand Down Expand Up @@ -892,9 +886,6 @@ impl MmapRaw {
/// # Example
///
/// ```
/// # extern crate memmap2;
/// # extern crate tempfile;
/// #
/// use std::fs::OpenOptions;
/// use std::io::Write;
/// use std::path::PathBuf;
Expand Down Expand Up @@ -1117,9 +1108,6 @@ impl MmapMut {
/// # Example
///
/// ```
/// # extern crate memmap2;
/// # extern crate tempfile;
/// #
/// use std::fs::OpenOptions;
/// use std::path::PathBuf;
///
Expand Down Expand Up @@ -1168,9 +1156,6 @@ impl MmapMut {
/// # Example
///
/// ```
/// # extern crate memmap2;
/// # extern crate tempfile;
/// #
/// use std::fs::OpenOptions;
/// use std::io::Write;
/// use std::path::PathBuf;
Expand Down Expand Up @@ -1244,8 +1229,6 @@ impl MmapMut {
/// # Example
///
/// ```
/// # extern crate memmap2;
/// #
/// use std::io::Write;
/// use std::path::PathBuf;
///
Expand Down Expand Up @@ -1463,8 +1446,6 @@ impl RemapOptions {

#[cfg(test)]
mod test {
extern crate tempfile;

#[cfg(unix)]
use crate::advice::Advice;
use std::fs::{File, OpenOptions};
Expand Down Expand Up @@ -1968,8 +1949,6 @@ mod test {
#[test]
#[cfg(feature = "stable_deref_trait")]
fn owning_ref() {
extern crate owning_ref;

let mut map = MmapMut::map_anon(128).unwrap();
map[10] = 42;
let owning = owning_ref::OwningRef::new(map);
Expand Down
2 changes: 0 additions & 2 deletions src/unix.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate libc;

use std::fs::File;
use std::mem::ManuallyDrop;
use std::os::unix::io::{FromRawFd, RawFd};
Expand Down
Loading