Use a few Rust idioms
This commit is contained in:
1 parent
fc86e04861
commit
8f82bb7fbc
2 files changed
+5
-11
No files matched your search
@@ -1,9 +1,11 @@
|
||||
use lazy_static::lazy_static;
|
||||
use regex::Regex;
|
||||
use serde::Deserialize;
|
||||
use std::clone::Clone;
|
||||
use std::net::SocketAddr;
|
||||
use std::time::Duration;
|
||||
use validator::Validate;
|
||||
use validator_derive::Validate;
|
||||
|
||||
lazy_static! {
|
||||
static ref RE_STREAM_FORM: Regex = Regex::new(r"^([hH]26[45]|[ \t]*[!].*)$").unwrap();
|
||||
|
||||
Reference in new issue
Block a user