Skip to content

Commit d2ed454

Browse files
authored
Merge pull request #223 from AndreasKarg/fix_formatting
Fix minor formatting issues Travis has been complaining about
2 parents 0ba7db8 + 8fbb52c commit d2ed454

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/de/escape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ macro_rules! deserialize_num {
5050

5151
visitor.$visit(value)
5252
}
53-
}
53+
};
5454
}
5555

5656
impl<'de> serde::Deserializer<'de> for EscapedDeserializer {

src/de/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ macro_rules! deserialize_type {
247247

248248
visitor.$visit(value)
249249
}
250-
}
250+
};
251251
}
252252

253253
impl<'de, 'a, R: BufRead> de::Deserializer<'de> for &'a mut Deserializer<R> {

src/writer.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ impl<W: Write> Writer<W> {
146146
Ok(wrote + self.write(before)? + self.write(value)? + self.write(after)?)
147147
}
148148

149-
/// Manually write a newline and indentation at the proper level.
150-
///
151-
/// This can be used when the heuristic to line break and indent after any [Event] apart
149+
/// Manually write a newline and indentation at the proper level.
150+
///
151+
/// This can be used when the heuristic to line break and indent after any [Event] apart
152152
/// from [Text] fails such as when a [Start] occurs directly after [Text].
153153
/// This method will do nothing if `Writer` was not constructed with `new_with_indent`.
154154
///
@@ -166,7 +166,6 @@ impl<W: Write> Writer<W> {
166166
}
167167
Ok(wrote)
168168
}
169-
170169
}
171170

172171
#[derive(Clone)]

0 commit comments

Comments
 (0)