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

Commit 641b82a

Browse files
Don't allow value to be nullable
1 parent e8d00a4 commit 641b82a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/value_array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl ValueArray {
2828
}
2929
}
3030

31-
pub fn append(&mut self, value: Option<&Value>) {
31+
pub fn append(&mut self, value: &Value) {
3232
let value = value.to_glib_none();
3333
unsafe {
3434
ffi::g_value_array_append(self.to_glib_none_mut().0, value.0);
@@ -41,14 +41,14 @@ impl ValueArray {
4141
}
4242
}
4343

44-
pub fn insert(&mut self, index_: u32, value: Option<&Value>) {
44+
pub fn insert(&mut self, index_: u32, value: &Value) {
4545
let value = value.to_glib_none();
4646
unsafe {
4747
ffi::g_value_array_insert(self.to_glib_none_mut().0, index_, value.0);
4848
}
4949
}
5050

51-
pub fn prepend(&mut self, value: Option<&Value>) {
51+
pub fn prepend(&mut self, value: &Value) {
5252
let value = value.to_glib_none();
5353
unsafe {
5454
ffi::g_value_array_prepend(self.to_glib_none_mut().0, value.0);

0 commit comments

Comments
 (0)