diff --git a/compiler/gen/tests/gen_str.rs b/compiler/gen/tests/gen_str.rs index 856a5c270c..5a8e5143a5 100644 --- a/compiler/gen/tests/gen_str.rs +++ b/compiler/gen/tests/gen_str.rs @@ -8,7 +8,6 @@ extern crate inkwell; extern crate libc; extern crate roc_gen; - use roc_std::RocStr; #[macro_use] diff --git a/compiler/parse/tests/test_parse.rs b/compiler/parse/tests/test_parse.rs index f1c2f8112c..ca8dbe555f 100644 --- a/compiler/parse/tests/test_parse.rs +++ b/compiler/parse/tests/test_parse.rs @@ -2700,10 +2700,7 @@ mod test_parse { // It should occur twice in the debug output - once for the pattern, // and then again for the lookup. - let occurrences = format!("{:?}", actual) - .split("isTest") - .count() - - 1; + let occurrences = format!("{:?}", actual).split("isTest").count() - 1; assert_eq!(occurrences, 2); } diff --git a/compiler/reporting/tests/test_reporting.rs b/compiler/reporting/tests/test_reporting.rs index 56951dcb7c..a865091b61 100644 --- a/compiler/reporting/tests/test_reporting.rs +++ b/compiler/reporting/tests/test_reporting.rs @@ -203,8 +203,7 @@ mod test_reporting { } fn human_readable(str: &str) -> String { - str - .replace(RED_CODE, "") + str.replace(RED_CODE, "") .replace(WHITE_CODE, "") .replace(BLUE_CODE, "") .replace(YELLOW_CODE, "")