mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-13 07:41:11 +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> {
|
||||
let compiled = try!(self.pattern_for(pattern));
|
||||
self.filters.push(compiled.clone());
|
||||
self.filters.push(compiled);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn add_ignore(&mut self, pattern: &str) -> Result<(), PatternError> {
|
||||
let compiled = try!(self.pattern_for(pattern));
|
||||
self.ignores.push(compiled.clone());
|
||||
self.ignores.push(compiled);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue