Closed
Description
The following code:
// [dependencies]
// postgres-types = { version = "0.2.1", features = ["derive"] }
#[derive(postgres_types::FromSql)]
enum Example {
Hello,
World
}
gives a clippy warning:
warning: use of irregular braces for `format!` macro
--> src\main.rs:1:10
|
1 | #[derive(postgres_types::FromSql)]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(clippy::nonstandard_macro_braces)]` on by default
help: consider writing `postgres_types::FromSql`
--> src\main.rs:1:10
|
1 | #[derive(postgres_types::FromSql)]
| ^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
= note: this warning originates in the derive macro `postgres_types::FromSql` (in Nightly builds, run with -Z macro-backtrace for more info)
Metadata
Metadata
Assignees
Labels
No labels