aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-03-04 16:12:39 +0000
committerEdwin Cheng <[email protected]>2020-03-04 16:12:39 +0000
commitc7b0c72dd7d288f066e916f3e217e51c26e3aa47 (patch)
treedbf930e63236f08c4d4c50e75cccaec1d4f7e79c
parent6794d50a9bd516d1ba49416a57b04e619ecd7074 (diff)
Fix whitespace in tests
-rw-r--r--crates/ra_hir_expand/src/builtin_derive.rs2
-rw-r--r--crates/ra_hir_expand/src/builtin_macro.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_expand/src/builtin_derive.rs b/crates/ra_hir_expand/src/builtin_derive.rs
index 87224481c..a5b50a832 100644
--- a/crates/ra_hir_expand/src/builtin_derive.rs
+++ b/crates/ra_hir_expand/src/builtin_derive.rs
@@ -266,7 +266,7 @@ mod tests {
266 BuiltinDeriveExpander::Copy, 266 BuiltinDeriveExpander::Copy,
267 ); 267 );
268 268
269 assert_eq!(expanded, "impl <>std::marker::CopyforFoo <>{}"); 269 assert_eq!(expanded, "impl< >std::marker::CopyforFoo< >{}");
270 } 270 }
271 271
272 #[test] 272 #[test]
diff --git a/crates/ra_hir_expand/src/builtin_macro.rs b/crates/ra_hir_expand/src/builtin_macro.rs
index 1f380b571..b2c8a911f 100644
--- a/crates/ra_hir_expand/src/builtin_macro.rs
+++ b/crates/ra_hir_expand/src/builtin_macro.rs
@@ -367,7 +367,7 @@ mod tests {
367 "#, 367 "#,
368 ); 368 );
369 369
370 assert_eq!(expanded, "std::option::Option::None:: <&str>"); 370 assert_eq!(expanded, "std::option::Option::None:: < &str>");
371 } 371 }
372 372
373 #[test] 373 #[test]
@@ -414,7 +414,7 @@ mod tests {
414 414
415 assert_eq!( 415 assert_eq!(
416 expanded, 416 expanded,
417 r#"std::fmt::Arguments::new_v1(&[] ,&[std::fmt::ArgumentV1::new(&(arg1(a,b,c)),std::fmt::Display::fmt),std::fmt::ArgumentV1::new(&(arg2),std::fmt::Display::fmt),])"# 417 r#"std::fmt::Arguments::new_v1(&[], &[std::fmt::ArgumentV1::new(&(arg1(a,b,c)),std::fmt::Display::fmt),std::fmt::ArgumentV1::new(&(arg2),std::fmt::Display::fmt),])"#
418 ); 418 );
419 } 419 }
420} 420}