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

Commit 3acdbd3

Browse files
committed
Mark MainContext::ref_thread_default() as non-nullable with regards to the return value
Fixes #332
1 parent 6206222 commit 3acdbd3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Gir.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ concurrency = "send+sync"
363363
[object.function.return]
364364
nullable = false
365365

366+
[[object.function]]
367+
name = "ref_thread_default"
368+
[object.function.return]
369+
nullable = false
370+
366371
[[object]]
367372
name = "GLib.MainLoop"
368373
status = "generate"

src/auto/main_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl MainContext {
136136
}
137137
}
138138

139-
pub fn ref_thread_default() -> Option<MainContext> {
139+
pub fn ref_thread_default() -> MainContext {
140140
unsafe {
141141
from_glib_full(ffi::g_main_context_ref_thread_default())
142142
}

0 commit comments

Comments
 (0)