about summary refs log tree commit diff
path: root/src/libglob/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libglob/lib.rs')
-rw-r--r--src/libglob/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libglob/lib.rs b/src/libglob/lib.rs
index d2587746e0d..1affeadbff1 100644
--- a/src/libglob/lib.rs
+++ b/src/libglob/lib.rs
@@ -767,7 +767,7 @@ mod test {
     #[test]
     fn test_pattern_escape() {
         let s = "_[_]_?_*_!_";
-        assert_eq!(Pattern::escape(s), "_[[]_[]]_[?]_[*]_!_".to_strbuf());
+        assert_eq!(Pattern::escape(s), "_[[]_[]]_[?]_[*]_!_".to_string());
         assert!(Pattern::new(Pattern::escape(s).as_slice()).matches(s));
     }