Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit eee0019

Browse files
fmt
1 parent dcc1052 commit eee0019

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/main_context.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ impl MainContext {
8888
{
8989
unsafe extern "C" fn trampoline<F: FnOnce() + 'static>(func: gpointer) -> gboolean {
9090
let func: &mut Option<F> = &mut *(func as *mut Option<F>);
91-
let func = func.take().expect("MainContext::invoke() closure called multiple times");
91+
let func = func
92+
.take()
93+
.expect("MainContext::invoke() closure called multiple times");
9294
func();
9395
glib_sys::G_SOURCE_REMOVE
9496
}

src/subclass/types.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
>>>>>>> 9c766b7... f
21
// Copyright 2017-2018, The Gtk-rs Project Developers.
32
// See the COPYRIGHT file at the top-level directory of this distribution.
43
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>

src/translate.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,8 @@ impl FromGlibPtrContainer<*const c_char, *mut glib_sys::GHashTable> for HashMap<
18541854
) {
18551855
let key: String = from_glib_none(key as *const c_char);
18561856
let value: String = from_glib_none(value as *const c_char);
1857-
let hash_map: &mut HashMap<String, String> = &mut *(hash_map as *mut HashMap<String, String>);
1857+
let hash_map: &mut HashMap<String, String> =
1858+
&mut *(hash_map as *mut HashMap<String, String>);
18581859
hash_map.insert(key, value);
18591860
}
18601861
let mut map = HashMap::new();

0 commit comments

Comments
 (0)