about summary refs log tree commit diff
path: root/src/libcore/path2.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-08-27 17:49:35 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-08-27 17:49:35 -0700
commitff513b1bcd0d872899b453cb3542e7a0924d5bde (patch)
treec38e2cdfb96ff3be34ae0b74e8df94bec4bc18c0 /src/libcore/path2.rs
parentf2dcd7663a976f02675c72561eb377ecc263bd9b (diff)
libcore: Replace a bunch of "== None" with ".is_none()".
Generally, "== None" calls into the shape glue, and it's also more useful.
Diffstat (limited to 'src/libcore/path2.rs')
-rw-r--r--src/libcore/path2.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/path2.rs b/src/libcore/path2.rs
index bf388875546..235dd686a1d 100644
--- a/src/libcore/path2.rs
+++ b/src/libcore/path2.rs
@@ -506,8 +506,8 @@ mod windows {
 
     #[test]
     fn test_extract_unc_prefixes() {
-        assert extract_unc_prefix("\\\\") == None;
-        assert extract_unc_prefix("\\\\hi") == None;
+        assert extract_unc_prefix("\\\\").is_none();
+        assert extract_unc_prefix("\\\\hi").is_none();
         assert extract_unc_prefix("\\\\hi\\") == Some((~"hi", ~"\\"));
         assert extract_unc_prefix("\\\\hi\\there") ==
             Some((~"hi", ~"\\there"));
@@ -517,7 +517,7 @@ mod windows {
 
     #[test]
     fn test_extract_drive_prefixes() {
-        assert extract_drive_prefix("c") == None;
+        assert extract_drive_prefix("c").is_none();
         assert extract_drive_prefix("c:") == Some((~"c", ~""));
         assert extract_drive_prefix("d:") == Some((~"d", ~""));
         assert extract_drive_prefix("z:") == Some((~"z", ~""));