Skip to content

Commit

Permalink
Try to prevent Integer<Buffer = ...> IDE suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 25, 2024
1 parent d49fc1d commit d2f97a8
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 d2f97a8

Please sign in to comment.