Apply clippy fixes
This commit is contained in:
parent
39bae201eb
commit
824993ca76
6 changed files with 26 additions and 28 deletions
|
@ -17,7 +17,7 @@ fn eight() -> i32 {
|
|||
8
|
||||
}
|
||||
|
||||
fn null() -> () {}
|
||||
fn null() {}
|
||||
|
||||
#[test]
|
||||
fn examples() -> TestResult {
|
||||
|
|
|
@ -4,7 +4,7 @@ use std::collections::HashMap;
|
|||
use util::*;
|
||||
|
||||
// In real code, this would typically be a Regex, potentially created in a `lazy_static!`.
|
||||
static STARTS_WITH_HELLO: &'static str = r"^[Hh]ello\b";
|
||||
static STARTS_WITH_HELLO: &str = r"^[Hh]ello\b";
|
||||
|
||||
const MIN: u32 = 1;
|
||||
const MAX: u32 = 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue