Use a few Rust idioms

This commit is contained in:
George Hilliard committed 2020-07-04 12:35:46 -05:00
1 parent fc86e04861
commit 8f82bb7fbc
2 files changed
+5 -11

No files matched your search

+2
View File
@@ -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();