Skip to content

Commit

Permalink
Fix formatting error detected by rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Feb 5, 2024
1 parent 039fdd8 commit a69a7ab
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 a69a7ab

Please sign in to comment.