mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-14 00:01:12 +01:00
Remove unnecessary clone
This commit is contained in:
parent
b08880d4e4
commit
6072b353b9
1 changed files with 2 additions and 2 deletions
|
@ -39,14 +39,14 @@ impl NotificationFilter {
|
||||||
|
|
||||||
pub fn add_filter(&mut self, pattern: &str) -> Result<(), PatternError> {
|
pub fn add_filter(&mut self, pattern: &str) -> Result<(), PatternError> {
|
||||||
let compiled = try!(self.pattern_for(pattern));
|
let compiled = try!(self.pattern_for(pattern));
|
||||||
self.filters.push(compiled.clone());
|
self.filters.push(compiled);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn add_ignore(&mut self, pattern: &str) -> Result<(), PatternError> {
|
pub fn add_ignore(&mut self, pattern: &str) -> Result<(), PatternError> {
|
||||||
let compiled = try!(self.pattern_for(pattern));
|
let compiled = try!(self.pattern_for(pattern));
|
||||||
self.ignores.push(compiled.clone());
|
self.ignores.push(compiled);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue