Skip to content

Commit 1ff0e75

Browse files
redsun82Copilot
andcommitted
Rust: fix rustfmt formatting of ra_ap_syntax_bridge import
The rust-analyzer 0.0.328 upgrade changed the ra_ap_syntax_bridge import in rust/extractor/src/translate/base.rs to a single line that exceeds the max width, causing the rust-code CI job to fail at cargo fmt --check. Wrap the import so cargo fmt --check passes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 5064862 commit 1ff0e75

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • rust/extractor/src/translate

‎rust/extractor/src/translate/base.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ use ra_ap_syntax::{
1818
AstNode, NodeOrToken, SyntaxElementChildren, SyntaxError, SyntaxNode, SyntaxToken, TextRange,
1919
ast,
2020
};
21-
use ra_ap_syntax_bridge::{DocCommentDesugarMode, syntax_node_to_token_tree, token_tree_to_syntax_node};
21+
use ra_ap_syntax_bridge::{
22+
DocCommentDesugarMode, syntax_node_to_token_tree, token_tree_to_syntax_node,
23+
};
2224

2325
impl Emission<ast::Item> for Translator<'_> {
2426
fn pre_emit(&mut self, node: &ast::Item) -> Option<Label<generated::Item>> {

0 commit comments

Comments
 (0)