forked from mirrors/gstreamer-rs
Don't require a mutable self for TagSetterExtManual::add()
Like all GObjects, mutation works through interior mutability.
This commit is contained in:
parent
74527fe9d8
commit
9321f31d0a
1 changed files with 2 additions and 2 deletions
|
@ -15,13 +15,13 @@ use glib::value::ToSendValue;
|
|||
use tags::*;
|
||||
|
||||
pub trait TagSetterExtManual {
|
||||
fn add<'a, T: Tag<'a>>(&mut self, value: T::TagType, mode: TagMergeMode)
|
||||
fn add<'a, T: Tag<'a>>(&self, value: T::TagType, mode: TagMergeMode)
|
||||
where
|
||||
T::TagType: ToSendValue;
|
||||
}
|
||||
|
||||
impl<O: IsA<TagSetter>> TagSetterExtManual for O {
|
||||
fn add<'a, T: Tag<'a>>(&mut self, value: T::TagType, mode: TagMergeMode)
|
||||
fn add<'a, T: Tag<'a>>(&self, value: T::TagType, mode: TagMergeMode)
|
||||
where
|
||||
T::TagType: ToSendValue,
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue