about summary refs log tree commit diff
path: root/src/libfmt_macros
diff options
context:
space:
mode:
authorEsteban Küber <esteban@commure.com>2018-07-21 20:48:15 -0700
committerEsteban Küber <esteban@commure.com>2018-07-21 20:48:15 -0700
commitdc563d950017fedaa4690165d2d8b9b3e6cbd982 (patch)
tree26a05118a8b7f3533a5f70613c61f7094e446a27 /src/libfmt_macros
parent3c817259e3ff08b673c74b48742d118a238befe6 (diff)
downloadrust-dc563d950017fedaa4690165d2d8b9b3e6cbd982.tar.gz
rust-dc563d950017fedaa4690165d2d8b9b3e6cbd982.zip
fix test
Diffstat (limited to 'src/libfmt_macros')
-rw-r--r--src/libfmt_macros/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs
index 3d17ccec121..9952e5f64d6 100644
--- a/src/libfmt_macros/lib.rs
+++ b/src/libfmt_macros/lib.rs
@@ -555,7 +555,7 @@ mod tests {
     use super::*;
 
     fn same(fmt: &'static str, p: &[Piece<'static>]) {
-        let parser = Parser::new(fmt, syntax::ast::StrStyle::Cooked);
+        let parser = Parser::new(fmt, None);
         assert!(parser.collect::<Vec<Piece<'static>>>() == p);
     }
 
@@ -571,7 +571,7 @@ mod tests {
     }
 
     fn musterr(s: &str) {
-        let mut p = Parser::new(s, syntax::ast::StrStyle::Cooked);
+        let mut p = Parser::new(s, None);
         p.next();
         assert!(!p.errors.is_empty());
     }