Skip to content

Commit 0fba652

Browse files
committed
Remove PartialEq str for Encoding.
1 parent 9524dfe commit 0fba652

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub trait INSValue : INSObject {
1313
type Value: 'static + Copy + Encode;
1414

1515
fn value(&self) -> Self::Value {
16-
assert!(Self::Value::encode() == self.encoding());
16+
assert!(Self::Value::encode().as_str() == self.encoding());
1717
unsafe {
1818
let mut value = mem::uninitialized::<Self::Value>();
1919
let _: () = msg_send![self, getValue:&mut value];
@@ -70,6 +70,6 @@ mod tests {
7070
fn test_value() {
7171
let val = NSValue::from_value(13u32);
7272
assert!(val.value() == 13);
73-
assert!(u32::encode() == val.encoding());
73+
assert!(u32::encode().as_str() == val.encoding());
7474
}
7575
}

0 commit comments

Comments
 (0)