Skip to content

Commit d69be71

Browse files
committed
[bitreq] Make Error #[non_exhaustive]
Sadly `Error` has different fields based on different features, so to avoid downstream crates randomly breaking due to unrelated feature flag settings, we need to mark it `non_exhaustive`.
1 parent 1eab670 commit d69be71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bitreq/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::{error, io};
44

55
/// Represents an error while sending, receiving, or parsing an HTTP response.
66
#[derive(Debug)]
7-
// TODO: Make non-exhaustive for 3.0?
7+
#[non_exhaustive]
88
// TODO: Maybe make a few inner error types containing groups of these, based on
99
// what the user might want to handle? This error doesn't really invite graceful
1010
// handling.

0 commit comments

Comments
 (0)