diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-11-19 18:55:57 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-11-19 19:25:53 +0300 |
commit | d56ae71e0e4f5465fa32772414ca616ec7bcf0a6 (patch) | |
tree | 51811e16173d6a14a33813f8d77caabc1b207a91 /video/gif | |
parent | df6a229f58cd83591ed1702bd95199436644d22e (diff) |
Update for ObjectImpl::get_property() being infallible now
Diffstat (limited to 'video/gif')
-rw-r--r-- | video/gif/src/gifenc/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index 3d0c56e3b..962d11560 100644 --- a/video/gif/src/gifenc/imp.rs +++ b/video/gif/src/gifenc/imp.rs @@ -226,13 +226,13 @@ impl ObjectImpl for GifEnc { } } - fn get_property(&self, _obj: &Self::Type, id: usize) -> Result<glib::Value, ()> { + fn get_property(&self, _obj: &Self::Type, id: usize) -> glib::Value { let prop = &PROPERTIES[id]; match *prop { subclass::Property("repeat", ..) => { let settings = self.settings.lock().unwrap(); - Ok(settings.repeat.to_value()) + settings.repeat.to_value() } _ => unimplemented!(), } |