Remove unnecessary clone

This commit is contained in:
Matt Green 2016-09-23 14:04:19 -06:00
parent b08880d4e4
commit 6072b353b9

View file

@ -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(())
}