We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo pkgid mongodb
cargo pkgid bson
db.version()
I get a compilation error when handling ErrorKind::GridFs error
let client = Client::with_uri_str("mongodb://localhost:27017/test").await.unwrap(); let db = client.default_database().unwrap(); let bucket = db.gridfs_bucket(None); let res = bucket.delete(Bson::String("1234567".to_string())).await; match res { Ok(_) => {println!("ok")} Err(err) => { match *err.kind { ErrorKind::GridFs(_) => {println!("gridfs error")} _ => {println!("other mongodb error")} } } }
| 130 | ErrorKind::GridFs(_) => {println!("gridfs error")} | ^^^^^^ private tuple variant | | 573 | #[non_exhaustive] | ----------------- cannot be constructed because it is `#[non_exhaustive]` 574 | GridFs(GridFsErrorKind), | ^^^^^^
The text was updated successfully, but these errors were encountered:
Thanks for the bug report! I've just merged #1080 to fix this.
Sorry, something went wrong.
abr-egn
No branches or pull requests
Versions/Environment
rustc 1.77.2 (25ef9e3d8 2024-04-09)
Ubuntu 20.04
cargo pkgid mongodb
&cargo pkgid bson
)[email protected]
db.version()
)4.2.2
standalone
Describe the bug
I get a compilation error when handling ErrorKind::GridFs error
The text was updated successfully, but these errors were encountered: