From db0c2ef7f7901c342bfa722b514837abd5a43705 Mon Sep 17 00:00:00 2001 From: Magnus Hoff Date: Tue, 24 Oct 2017 09:19:01 +0200 Subject: [PATCH] Finish refactoring, reducing some cloning --- src/wiki_lookup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiki_lookup.rs b/src/wiki_lookup.rs index a357107..336dcf9 100644 --- a/src/wiki_lookup.rs +++ b/src/wiki_lookup.rs @@ -86,7 +86,7 @@ impl WikiLookup { ("_assets", Some(asset)) => Box::new(asset_lookup(asset)), ("_changes", None) => - Box::new(ChangesLookup::new(self.state.clone()).lookup(query)), + Box::new(self.changes_lookup.lookup(query)), ("_new", None) => Box::new(finished(Some(Box::new(NewArticleResource::new(self.state.clone(), None)) as BoxResource))), ("_sitemap", None) =>