We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 039fdd8 commit a69a7abCopy full SHA for a69a7ab
fluent-syntax/src/serializer.rs
@@ -21,7 +21,7 @@
21
//! assert_eq!(ftl, serialized);
22
//! ```
23
24
-use crate::{ast::*, parser::Slice, parser::matches_fluent_ws};
+use crate::{ast::*, parser::matches_fluent_ws, parser::Slice};
25
use std::fmt::Write;
26
27
/// Serializes an abstract syntax tree representing a Fluent Translation List into a
@@ -118,11 +118,7 @@ impl Serializer {
118
for line in &comment.content {
119
self.writer.write_literal(prefix);
120
121
- if !line
122
- .as_ref()
123
- .trim_matches(matches_fluent_ws)
124
- .is_empty()
125
- {
+ if !line.as_ref().trim_matches(matches_fluent_ws).is_empty() {
126
self.writer.write_literal(" ");
127
self.writer.write_literal(line.as_ref());
128
}
0 commit comments