clippy: fix items_after_statements lint

https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
This commit is contained in:
xtqqczze
2026-04-28 09:37:21 +02:00
committed by Daniel Hofstetter
parent ff6b2ef716
commit c2acff22ee
22 changed files with 77 additions and 61 deletions
+7 -6
View File
@@ -16,8 +16,13 @@ use std::{
use clap::{Arg, Command};
use clap_complete::Shell;
use clap_mangen::Man;
use fluent_syntax::ast::{Entry, Message, Pattern};
use fluent_syntax::parser;
use fluent_syntax::{
ast::{
Entry, Expression, InlineExpression, Message, Pattern,
PatternElement::{Placeable, TextElement},
},
parser,
};
use jiff::Zoned;
use regex::Regex;
use textwrap::{fill, indent, termwidth};
@@ -447,10 +452,6 @@ impl MDWriter<'_, '_> {
if id.name == key {
// Simple text extraction - just concatenate text elements
let mut result = String::new();
use fluent_syntax::ast::{
Expression, InlineExpression,
PatternElement::{Placeable, TextElement},
};
for element in elements {
if let TextElement { ref value } = element {
result.push_str(value);