We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bac2d8 commit f668a2cCopy full SHA for f668a2c
src/object.rs
@@ -76,7 +76,7 @@ mod tests {
76
let obj = NSObject::new();
77
let description = obj.description();
78
let expected = format!("<NSObject: {:p}>", &*obj);
79
- assert!(description.as_str() == expected.as_slice());
+ assert!(description.as_str() == &*expected);
80
}
81
82
#[test]
src/string.rs
@@ -69,12 +69,6 @@ impl INSCopying for NSString {
69
type Output = NSString;
70
71
72
-impl Str for NSString {
73
- fn as_slice(&self) -> &str {
74
- self.as_str()
75
- }
-}
-
#[cfg(test)]
mod tests {
use super::{INSCopying, INSString, NSString};
0 commit comments