fix: indentation after inserting #must_use

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
feniljain 2022-11-02 16:09:12 +05:30 committed by GitHub
parent 4bf9b9b003
commit 691ce306df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ fn generate_enum_projection_method(
let field_type_syntax = field_type.syntax(); let field_type_syntax = field_type.syntax();
let must_use = if ctx.config.assist_emit_must_use { let must_use = if ctx.config.assist_emit_must_use {
"#[must_use]\n" "#[must_use]\n "
} else { } else {
"" ""
}; };