https://pantsbuild.org/ logo
a

average-vr-56795

09/29/2017, 5:06 PM
foo.and_then(|arcmutex| arcmutex.deref().lock().unwrap().get(|hashmap| hashmap.get(bar)).and_then(|value| do_something_with(value)) I need to pull out hashmap as a variable, because otherwise I lose my lock at the end of the and_then scope and can't access value.