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 91d0723c1b
commit c56251d673

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