Skip to content
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
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description = """
Support for matching file paths against Unix shell style patterns.
"""
categories = ["filesystem"]
edition = "2021"
rust-version = "1.63.0"

[dev-dependencies]
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ To use `glob`, add this to your `Cargo.toml`:
glob = "0.3.2"
```

If you're using Rust 1.30 or earlier, or edition 2015, add this to your crate root:

```rust
extern crate glob;
```

## Examples

Print all jpg files in /media/ and all of its subdirectories.
Expand Down
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@
#![allow(clippy::while_let_loop)]

#[cfg(test)]
#[macro_use]
extern crate doc_comment;

#[cfg(test)]
doctest!("../README.md");
doc_comment::doctest!("../README.md");

use std::cmp;
use std::cmp::Ordering;
Expand Down Expand Up @@ -319,7 +315,7 @@ impl Error for GlobError {
}

#[allow(unknown_lints, bare_trait_objects)]
fn cause(&self) -> Option<&Error> {
fn cause(&self) -> Option<&dyn Error> {
Some(&self.error)
}
}
Expand Down
3 changes: 0 additions & 3 deletions tests/glob-std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

#![cfg_attr(test, deny(warnings))]

extern crate glob;
extern crate tempfile;

use glob::{glob, glob_with};
use std::env;
use std::fs;
Expand Down