diff --git a/cli/src/tests/tags_test.rs b/cli/src/tests/tags_test.rs index 2b058c0b..628c0bf6 100644 --- a/cli/src/tests/tags_test.rs +++ b/cli/src/tests/tags_test.rs @@ -70,7 +70,7 @@ const RUBY_TAG_QUERY: &'static str = r#" (method name: (_) @name) @definition.method -(method_call +(call method: (identifier) @name) @reference.call (setter (identifier) @ignore) @@ -317,19 +317,17 @@ fn test_tags_with_parse_error() { assert!(failed, "syntax error should have been detected"); assert_eq!( - newtags.iter() + newtags + .iter() .map(|t| ( substr(source, &t.name_range), tags_config.syntax_type_name(t.syntax_type_id) )) .collect::>(), - &[ - ("Fine", "class"), - ] + &[("Fine", "class"),] ); } - #[test] fn test_tags_via_c_api() { allocations::record(|| { diff --git a/test/fixtures/error_corpus/ruby_errors.txt b/test/fixtures/error_corpus/ruby_errors.txt index 49dc2b32..df160811 100644 --- a/test/fixtures/error_corpus/ruby_errors.txt +++ b/test/fixtures/error_corpus/ruby_errors.txt @@ -10,7 +10,7 @@ c --- (program - (method_call + (call method: (identifier) (ERROR (heredoc_beginning)) arguments: (argument_list