mark deprecated. Selector::value(RefValue) since 0.1.12

This commit is contained in:
freestrings
2019-04-15 11:02:46 +09:00
parent 132f63b7f9
commit e4a50bd689
3 changed files with 3 additions and 2 deletions

View File

@ -91,6 +91,7 @@ impl Selector {
Ok(self)
}
#[deprecated(since = "0.1.12", note = "Parameter type will be changed from `RefValue` to `&Value` since `0.1.12`")]
pub fn value(&mut self, ref_value: RefValue) -> result::Result<&mut Self, String> {
self.value = Some(ref_value.into());
Ok(self)