Skip to content

Commit f668a2c

Browse files
committed
Removed deprecated Str trait.
1 parent 5bac2d8 commit f668a2c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ mod tests {
7676
let obj = NSObject::new();
7777
let description = obj.description();
7878
let expected = format!("<NSObject: {:p}>", &*obj);
79-
assert!(description.as_str() == expected.as_slice());
79+
assert!(description.as_str() == &*expected);
8080
}
8181

8282
#[test]

src/string.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ impl INSCopying for NSString {
6969
type Output = NSString;
7070
}
7171

72-
impl Str for NSString {
73-
fn as_slice(&self) -> &str {
74-
self.as_str()
75-
}
76-
}
77-
7872
#[cfg(test)]
7973
mod tests {
8074
use super::{INSCopying, INSString, NSString};

0 commit comments

Comments
 (0)