diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-08-27 17:49:35 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-08-27 17:49:35 -0700 |
| commit | ff513b1bcd0d872899b453cb3542e7a0924d5bde (patch) | |
| tree | c38e2cdfb96ff3be34ae0b74e8df94bec4bc18c0 /src/libcore/path2.rs | |
| parent | f2dcd7663a976f02675c72561eb377ecc263bd9b (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.rs | 6 |
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", ~"")); |
