Skip to content

Commit e6acee2

Browse files
author
games647
committed
Replace assert_matches with nightly std version
1 parent caaf787 commit e6acee2

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ features = ["color", "derive", "std", "cargo"]
6767

6868
# Dependencies for dev environments like tests and benchmarks
6969
[dev-dependencies]
70-
# Allows asserting to patterns - in this case easier for using assert_eq with nightly APIs
71-
assert_matches = "1.4"
72-
7370
# Benchmarking tool, because #[bench] is a nightly only feature at the moment
7471
# Source: https://doc.rust-lang.org/cargo/commands/cargo-bench.html
7572
criterion = "0.3"

src/find/advise.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ impl Error for FAdviseError {}
116116
mod test {
117117
use std::{os::unix::io::FromRawFd, panic, ptr};
118118

119-
use assert_matches::assert_matches;
120119
use memmap::MmapOptions;
121120

122121
use super::*;

src/find/parse.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ impl From<ParseIntError> for ParseHashError {
9999
mod test {
100100
use std::convert::TryInto;
101101

102-
use assert_matches::assert_matches;
103102
use data_encoding::HEXUPPER;
104103

105104
use crate::find::SIMD_WIDTH;

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![feature(assert_matches)]
2+
13
use std::{fs::File, io::Read};
24

35
use clap::{crate_description, crate_name, crate_version, App, Arg};
@@ -88,7 +90,6 @@ mod logger;
8890
#[cfg(test)]
8991
mod test {
9092
use super::*;
91-
use assert_matches::assert_matches;
9293

9394
#[test]
9495
fn test_parse() {

0 commit comments

Comments
 (0)