From eba6e59eba8cc136583d2cf687188629a2971680 Mon Sep 17 00:00:00 2001 From: Robin Stumm Date: Thu, 14 Mar 2019 23:45:45 +0100 Subject: [PATCH] StorageService::restore takes immutable receiver --- src/services/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/storage.rs b/src/services/storage.rs index 5319b1a0da2..bf0da5e2010 100644 --- a/src/services/storage.rs +++ b/src/services/storage.rs @@ -49,7 +49,7 @@ impl StorageService { } /// Restores value from the storage. - pub fn restore(&mut self, key: &str) -> T + pub fn restore(&self, key: &str) -> T where T: From, {