toasty::create!() should support struct field init shorthands in the argument, as it looks like a struct, and is also believed to be a struct by cargo fmt and co, so it makes it automatically use the shorthand, which then fails to compile
toasty::create!(User {
first_name: first_name,
last_name: last_name,
})
.exec(db)
.await?;
gets rewritten to
toasty::create!(User {
first_name,
last_name,
})
.exec(db)
.await?;
by a cargo fmt run, which in toasty 0.3 then fails to compile with
error: expected :
toasty::create!() should support struct field init shorthands in the argument, as it looks like a struct, and is also believed to be a struct by
cargo fmtand co, so it makes it automatically use the shorthand, which then fails to compilegets rewritten to
by a
cargo fmtrun, which in toasty 0.3 then fails to compile with