diff --git a/src/items.rs b/src/items.rs index b381ba8b7b28..8e6845c64b6e 100644 --- a/src/items.rs +++ b/src/items.rs @@ -1051,15 +1051,15 @@ pub fn rewrite_type_alias(context: &RewriteContext, fn type_annotation_spacing(config: &Config) -> (&str, &str) { (if config.space_before_type_annotation { - " " - } else { - "" - }, + " " + } else { + "" + }, if config.space_after_type_annotation_colon { - " " - } else { - "" - }) + " " + } else { + "" + }) } impl Rewrite for ast::StructField {