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 30ed45b commit a609afbCopy full SHA for a609afb
rustfmt-core/rustfmt-lib/src/expr.rs
@@ -252,7 +252,8 @@ pub(crate) fn format_expr(
252
fn needs_space_before_range(context: &RewriteContext<'_>, lhs: &ast::Expr) -> bool {
253
match lhs.kind {
254
ast::ExprKind::Lit(ref lit) => match lit.kind {
255
- ast::LitKind::FloatUnsuffixed(..) => {
+ ast::LitKind::Float(_, ref float_type) if ast::LitFloatType::Unsuffixed == *float_type =>
256
+ {
257
context.snippet(lit.span).ends_with('.')
258
}
259
_ => false,
0 commit comments