diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-27 11:45:50 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-06 19:05:58 -0500 |
| commit | f2af07e6d5254ca7b2bb5791afe5314fe6947128 (patch) | |
| tree | 71c522be7e17e7248700d67b111eee54ed324ae1 /src/libcollections/enum_set.rs | |
| parent | de83d7dd191bf5564855057a29f9b5d9dcfcb201 (diff) | |
| download | rust-f2af07e6d5254ca7b2bb5791afe5314fe6947128.tar.gz rust-f2af07e6d5254ca7b2bb5791afe5314fe6947128.zip | |
libcollections: remove unnecessary `as_slice()` calls
Diffstat (limited to 'src/libcollections/enum_set.rs')
| -rw-r--r-- | src/libcollections/enum_set.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs index 2cbde0168a2..5e77cf66726 100644 --- a/src/libcollections/enum_set.rs +++ b/src/libcollections/enum_set.rs @@ -288,11 +288,11 @@ mod test { #[test] fn test_show() { let mut e = EnumSet::new(); - assert_eq!("{}", e.to_string().as_slice()); + assert_eq!("{}", e.to_string()); e.insert(A); - assert_eq!("{A}", e.to_string().as_slice()); + assert_eq!("{A}", e.to_string()); e.insert(C); - assert_eq!("{A, C}", e.to_string().as_slice()); + assert_eq!("{A, C}", e.to_string()); } #[test] |
