Don't require a mutable self for TagSetterExtManual::add()

Like all GObjects, mutation works through interior mutability.
This commit is contained in:
Sebastian Dröge 2017-12-23 11:43:09 +02:00
parent 74527fe9d8
commit 9321f31d0a

View file

@ -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,
{