Deprecate Equiv

This commit is contained in:
Jorge Aparicio
2014-11-26 23:50:12 -05:00
parent 09707d70a4
commit 5cfac94201
10 changed files with 20 additions and 5 deletions

View File

@@ -623,6 +623,7 @@ impl fmt::Show for InternedString {
}
}
#[allow(deprecated)]
impl<'a> Equiv<&'a str> for InternedString {
fn equiv(&self, other: & &'a str) -> bool {
(*other) == self.string.as_slice()