]> git.lizzy.rs Git - rust.git/blobdiff - src/libglob/lib.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / libglob / lib.rs
index 21f04a83e4995616f2e97b5c766a54956b95610f..05dd1bad569f566257539c11f5fb7ae9e9a27318 100644 (file)
@@ -767,7 +767,7 @@ fn test_pattern_matches() {
     #[test]
     fn test_pattern_escape() {
         let s = "_[_]_?_*_!_";
-        assert_eq!(Pattern::escape(s), ~"_[[]_[]]_[?]_[*]_!_");
+        assert_eq!(Pattern::escape(s), "_[[]_[]]_[?]_[*]_!_".to_owned());
         assert!(Pattern::new(Pattern::escape(s)).matches(s));
     }