Skip to content
Snippets Groups Projects
Commit fedf3437 authored by Maaz Ahmed's avatar Maaz Ahmed
Browse files

fix: correct Sealed trait's visibility

fixes #15
parent 532d872f
No related branches found
No related tags found
1 merge request!9Resolve "bug: Sealed trait causing lint errors"
...@@ -153,6 +153,6 @@ pub enum Method { ...@@ -153,6 +153,6 @@ pub enum Method {
// Private trait used to seal other traits to disallow users from implementing // Private trait used to seal other traits to disallow users from implementing
// them directly // them directly
pub(crate) mod seal { mod seal {
pub(crate) trait Sealed {} pub trait Sealed {}
} }
...@@ -30,5 +30,4 @@ pub use cmp::Comparison; ...@@ -30,5 +30,4 @@ pub use cmp::Comparison;
pub use logic::Logical; pub use logic::Logical;
/// Marker trait for signifying that a type can be used with the operators /// Marker trait for signifying that a type can be used with the operators
#[allow(private_bounds)]
pub trait Operable: Display + Sealed {} pub trait Operable: Display + Sealed {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment