mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-04 06:02:00 -07:00
edition: run 'cargo fix --edition --edition-idioms --all'
This commit is contained in:
@@ -38,8 +38,6 @@ implementations.
|
||||
|
||||
#![deny(missing_docs)]
|
||||
|
||||
extern crate memchr;
|
||||
|
||||
use std::fmt;
|
||||
use std::io;
|
||||
use std::ops;
|
||||
@@ -304,7 +302,7 @@ pub struct ByteSet(BitSet);
|
||||
struct BitSet([u64; 4]);
|
||||
|
||||
impl fmt::Debug for BitSet {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let mut fmtd = f.debug_set();
|
||||
for b in (0..256).map(|b| b as u8) {
|
||||
if ByteSet(*self).contains(b) {
|
||||
@@ -494,7 +492,7 @@ impl ::std::error::Error for NoError {
|
||||
}
|
||||
|
||||
impl fmt::Display for NoError {
|
||||
fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, _: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
panic!("BUG for NoError: an impossible error occurred")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user