mirror of
https://github.com/sharkdp/fd
synced 2024-10-02 22:13:31 +00:00
Fix "unnecessary braces" warning
Original warning: ``` warning: unnecessary braces around block return value --> src/filter/size.rs:5:39 | 5 | static ref SIZE_CAPTURES: Regex = { Regex::new(r"(?i)^([+-])(\d+)(b|[kmgt]i?b?)$").unwrap() }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces | = note: `#[warn(unused_braces)]` on by default warning: 1 warning emitted ```
This commit is contained in:
parent
4f4330167a
commit
151eaad043
|
@ -2,7 +2,7 @@ use lazy_static::lazy_static;
|
|||
use regex::Regex;
|
||||
|
||||
lazy_static! {
|
||||
static ref SIZE_CAPTURES: Regex = { Regex::new(r"(?i)^([+-])(\d+)(b|[kmgt]i?b?)$").unwrap() };
|
||||
static ref SIZE_CAPTURES: Regex = Regex::new(r"(?i)^([+-])(\d+)(b|[kmgt]i?b?)$").unwrap();
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
|
|
Loading…
Reference in a new issue