Guarantee that Integer: Copy

This commit is contained in:
David Tolnay 2021-12-12 11:46:02 -08:00
parent 0f27c02804
commit 54b4f3db29
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ pub trait Integer: private::Sealed {}
// Seal to prevent downstream implementations of the Integer trait.
mod private {
pub trait Sealed {
pub trait Sealed: Copy {
fn write(self, buf: &mut crate::Buffer) -> &str;
}
}