Skip to content

Commit

Permalink
cargo +nightly fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and flodolo committed Feb 5, 2024
1 parent 039fdd8 commit 258006b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fluent-syntax/src/serializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//! assert_eq!(ftl, serialized);
//! ```

use crate::{ast::*, parser::Slice, parser::matches_fluent_ws};
use crate::{ast::*, parser::matches_fluent_ws, parser::Slice};
use std::fmt::Write;

/// Serializes an abstract syntax tree representing a Fluent Translation List into a
Expand Down Expand Up @@ -118,11 +118,7 @@ impl Serializer {
for line in &comment.content {
self.writer.write_literal(prefix);

if !line
.as_ref()
.trim_matches(matches_fluent_ws)
.is_empty()
{
if !line.as_ref().trim_matches(matches_fluent_ws).is_empty() {
self.writer.write_literal(" ");
self.writer.write_literal(line.as_ref());
}
Expand Down

0 comments on commit 258006b

Please sign in to comment.