Format code

This commit is contained in:
Matt Gathu 2020-10-18 07:44:26 +02:00
parent da3d5387f5
commit 78668ad91e
No known key found for this signature in database
GPG Key ID: 7DAD4895E291CE56
1 changed files with 1 additions and 4 deletions

View File

@ -115,10 +115,7 @@ impl Logger {
}
/// Ignore and do not log access info for paths that match regex
pub fn exclude_regex<T: Into<String>>(
mut self,
path: T,
) -> Self {
pub fn exclude_regex<T: Into<String>>(mut self, path: T) -> Self {
let inner = Rc::get_mut(&mut self.0).unwrap();
let mut patterns = inner.exclude_regex.patterns().to_vec();
patterns.push(path.into());