mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
clippy: fix items_after_statements lint
https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
This commit is contained in:
committed by
Daniel Hofstetter
parent
ff6b2ef716
commit
c2acff22ee
+7
-6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user