Cleanup some unneeded let bindings

This commit is contained in:
David Zbarsky 2015-11-02 21:54:44 -08:00
parent 9fea6d2e46
commit dfc90db1d7
4 changed files with 12 additions and 21 deletions

View file

@ -1182,9 +1182,7 @@ impl Window {
browsing_context.frame_element().map(|frame_element| {
let window = window_from_node(frame_element);
// FIXME(https://github.com/rust-lang/rust/issues/23338)
let r = window.r();
let context = r.browsing_context();
let context = window.browsing_context();
Root::from_ref(context.unwrap().active_window())
})
}