Skip to content

Commit

Permalink
Fix another occurrence of rust-lang#22243
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Feb 22, 2015
1 parent dcc6ce2 commit a499148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/util/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit a499148

Please sign in to comment.