Skip to content

Commit

Permalink
StorageService::restore takes immutable receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
dermetfan committed Mar 14, 2019
1 parent 150e5af commit eba6e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl StorageService {
}

/// Restores value from the storage.
pub fn restore<T>(&mut self, key: &str) -> T
pub fn restore<T>(&self, key: &str) -> T
where
T: From<Text>,
{
Expand Down

0 comments on commit eba6e59

Please sign in to comment.