From c79eb976ca4c5cd02275b4f3c843380f64f563b7 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Thu, 10 Feb 2022 09:55:41 +0000 Subject: [PATCH] Remove unnecessary explanation The nested pub inside a private module is easy to understand, we do not need an explanation. --- src/context.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/context.rs b/src/context.rs index e91eeb1..71efbfa 100644 --- a/src/context.rs +++ b/src/context.rs @@ -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> {}