Skip to content

Commit

Permalink
fmt: run 'cargo fmt --all'
Browse files Browse the repository at this point in the history
It looks like 'cargo fix' didn't do this.
  • Loading branch information
BurntSushi committed May 1, 2021
1 parent 832ba73 commit a2a393f
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 28 deletions.
4 changes: 2 additions & 2 deletions regex-syntax/src/unicode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ pub fn contains_simple_case_mapping(

#[cfg(feature = "unicode-case")]
fn imp(start: char, end: char) -> FoldResult<bool> {
use std::cmp::Ordering;
use crate::unicode_tables::case_folding_simple::CASE_FOLDING_SIMPLE;
use std::cmp::Ordering;

assert!(start <= end);
Ok(CASE_FOLDING_SIMPLE
Expand Down Expand Up @@ -406,8 +406,8 @@ pub fn is_word_character(c: char) -> result::Result<bool, UnicodeWordError> {
#[cfg(feature = "unicode-perl")]
fn imp(c: char) -> result::Result<bool, UnicodeWordError> {
use crate::is_word_byte;
use std::cmp::Ordering;
use crate::unicode_tables::perl_word::PERL_WORD;
use std::cmp::Ordering;

if c <= 0x7F as char && is_word_byte(c as u8) {
return Ok(true);
Expand Down
1 change: 0 additions & 1 deletion src/dfa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,6 @@ fn read_varu32(data: &[u8]) -> (u32, usize) {

#[cfg(test)]
mod tests {


use super::{
push_inst_ptr, read_vari32, read_varu32, write_vari32, write_varu32,
Expand Down
3 changes: 0 additions & 3 deletions tests/test_backtrack.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![cfg_attr(feature = "pattern", feature(pattern))]




macro_rules! regex_new {
($re:expr) => {{
use regex::internal::ExecBuilder;
Expand Down
3 changes: 0 additions & 3 deletions tests/test_backtrack_bytes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@



macro_rules! regex_new {
($re:expr) => {{
use regex::internal::ExecBuilder;
Expand Down
3 changes: 0 additions & 3 deletions tests/test_backtrack_utf8bytes.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![cfg_attr(feature = "pattern", feature(pattern))]




macro_rules! regex_new {
($re:expr) => {{
use regex::internal::ExecBuilder;
Expand Down
3 changes: 0 additions & 3 deletions tests/test_crates_regex.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@



/*
* This test is a minimal version of <rofl_0> and <subdiff_0>
*
Expand Down
1 change: 0 additions & 1 deletion tests/test_default.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![cfg_attr(feature = "pattern", feature(pattern))]


use regex;

// Due to macro scoping rules, this definition only applies for the modules
Expand Down
3 changes: 0 additions & 3 deletions tests/test_default_bytes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@



macro_rules! regex_new {
($re:expr) => {{
use regex::bytes::Regex;
Expand Down
3 changes: 0 additions & 3 deletions tests/test_nfa.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![cfg_attr(feature = "pattern", feature(pattern))]




macro_rules! regex_new {
($re:expr) => {{
use regex::internal::ExecBuilder;
Expand Down
3 changes: 0 additions & 3 deletions tests/test_nfa_bytes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@



macro_rules! regex_new {
($re:expr) => {{
use regex::internal::ExecBuilder;
Expand Down
3 changes: 0 additions & 3 deletions tests/test_nfa_utf8bytes.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![cfg_attr(feature = "pattern", feature(pattern))]




macro_rules! regex_new {
($re:expr) => {{
use regex::internal::ExecBuilder;
Expand Down

0 comments on commit a2a393f

Please sign in to comment.