Skip to content

Commit

Permalink
Remove unnecessary explanation
Browse files Browse the repository at this point in the history
The nested pub inside a private module is easy to understand, we do not
need an explanation.
  • Loading branch information
tcharding committed Feb 10, 2022
1 parent f95e91a commit c79eb97
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ pub struct AllPreallocated<'buf> {

mod private {
use super::*;
// A trick to prevent users from implementing a trait.
// On one hand this trait is public, on the other it's in a private module
// so it's not visible to anyone besides it's parent (the context module).
pub trait Sealed {}

impl<'buf> Sealed for AllPreallocated<'buf> {}
Expand Down

0 comments on commit c79eb97

Please sign in to comment.