From 3abe0803d68566d4086542d1b2228b1115656f55 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 17 Aug 2018 09:56:36 +0300 Subject: [PATCH] Source: Remove reduntant save() call Source::clear_etags does a save already, so it's not needed to call it twice. --- podcasts-data/src/models/source.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/podcasts-data/src/models/source.rs b/podcasts-data/src/models/source.rs index a1da36f..82c90d3 100644 --- a/podcasts-data/src/models/source.rs +++ b/podcasts-data/src/models/source.rs @@ -175,7 +175,6 @@ impl Source { debug!("Previous Source: {:#?}", &self); self.set_uri(url.to_string()); - self = self.save()?; self = self.clear_etags()?; debug!("Updated Source: {:#?}", &self);