diff options
| author | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-02-22 17:13:41 +0100 |
|---|---|---|
| committer | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-02-22 17:13:41 +0100 |
| commit | a49914845780760ab19108a9aab0cb7e1fd61381 (patch) | |
| tree | 04d80e5a02106b41d0057969ce89e52a02d18a91 | |
| parent | dcc6ce2c772cb851ac35cbc2ddafcae9bf2fa9fd (diff) | |
| download | rust-a49914845780760ab19108a9aab0cb7e1fd61381.tar.gz rust-a49914845780760ab19108a9aab0cb7e1fd61381.zip | |
Fix another occurrence of #22243
| -rw-r--r-- | src/librustc/util/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/util/common.rs b/src/librustc/util/common.rs index a3cc23b7bba..ca740f53782 100644 --- a/src/librustc/util/common.rs +++ b/src/librustc/util/common.rs @@ -212,7 +212,7 @@ pub fn memoized<T, U, S, F>(cache: &RefCell<HashMap<T, U, S>>, arg: T, f: F) -> F: FnOnce(T) -> U, { let key = arg.clone(); - let result = cache.borrow().get(&key).map(|result| result.clone()); + let result = cache.borrow().get(&key).cloned(); match result { Some(result) => result, None => { |
