Skip to content

Commit

Permalink
Merge pull request #56 from dtolnay/hidebuffer
Browse files Browse the repository at this point in the history
Try to prevent Integer<Buffer = …> IDE suggestion
  • Loading branch information
dtolnay authored Nov 25, 2024
2 parents d49fc1d + d2f97a8 commit 6f07cf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ pub trait Integer: private::Sealed {

// Seal to prevent downstream implementations of the Integer trait.
mod private {
#[doc(hidden)]
pub trait Sealed: Copy {
#[doc(hidden)]
type Buffer: 'static;
fn write(self, buf: &mut Self::Buffer) -> &str;
}
Expand Down

0 comments on commit 6f07cf6

Please sign in to comment.