Skip to content

Commit 274265d

Browse files
authored
Make Error enum non_exhaustive (#139)
This allows us to introduce future variants of the error enum without making braking changes.
1 parent 10aef46 commit 274265d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

influxdb/src/error.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use thiserror::Error;
44

55
#[derive(Debug, Eq, PartialEq, Error)]
6+
#[non_exhaustive]
67
pub enum Error {
78
#[error("query is invalid: {error}")]
89
/// Error happens when a query is invalid

0 commit comments

Comments
 (0)