Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.75k stars 106 forks source link

Suppress rust warnings from outputted `prisma.rs` #331

Closed dukeeagle closed 1 year ago

dukeeagle commented 1 year ago

Awesome work here! Would it be possible to prevent add an #![allow(warnings)] to the top of prisma.rs in order to avoid unnecessary rust compiler warnings such as:

warning: function `equals` is never used
    --> src/prisma.rs:5438:16
     |
5438 |         pub fn equals(value: i32) -> WhereParam {
     |                ^^^^^^
Brendonovich commented 1 year ago

This used to be done but was removed because of #306. The docs now recommend to do this:

image