Remove unnecessary explanation

The nested pub inside a private module is easy to understand, we do not
need an explanation.
This commit is contained in:
Tobin Harding 2022-02-10 09:55:41 +00:00
parent f95e91a6da
commit c79eb976ca
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 0 additions and 3 deletions

View File

@ -97,9 +97,6 @@ pub struct AllPreallocated<'buf> {
mod private { mod private {
use super::*; 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 {} pub trait Sealed {}
impl<'buf> Sealed for AllPreallocated<'buf> {} impl<'buf> Sealed for AllPreallocated<'buf> {}