Skip to content

Commit

Permalink
Make object_store errors non-exhaustive (#6165)
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold authored Aug 2, 2024
1 parent df59cdd commit f708f3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions object_store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,7 @@ pub type Result<T, E = Error> = std::result::Result<T, E>;
/// A specialized `Error` for object store-related errors
#[derive(Debug, Snafu)]
#[allow(missing_docs)]
#[non_exhaustive]
pub enum Error {
#[snafu(display("Generic {} error: {}", store, source))]
Generic {
Expand Down
1 change: 1 addition & 0 deletions object_store/src/path/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub use parts::{InvalidPart, PathPart};
/// Error returned by [`Path::parse`]
#[derive(Debug, Snafu)]
#[allow(missing_docs)]
#[non_exhaustive]
pub enum Error {
#[snafu(display("Path \"{}\" contained empty path segment", path))]
EmptySegment { path: String },
Expand Down

0 comments on commit f708f3e

Please sign in to comment.