about summary refs log tree commit diff
path: root/src/libcore/path2.rs
diff options
context:
space:
mode:
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", ~""));