Guarantee that Integer: Copy
This commit is contained in:
parent
0f27c02804
commit
54b4f3db29
|
@ -99,7 +99,7 @@ pub trait Integer: private::Sealed {}
|
||||||
|
|
||||||
// Seal to prevent downstream implementations of the Integer trait.
|
// Seal to prevent downstream implementations of the Integer trait.
|
||||||
mod private {
|
mod private {
|
||||||
pub trait Sealed {
|
pub trait Sealed: Copy {
|
||||||
fn write(self, buf: &mut crate::Buffer) -> &str;
|
fn write(self, buf: &mut crate::Buffer) -> &str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue