remove writeable impl [u8; 4] (#3132)

This commit is contained in:
Antioch Peverell 2020-01-29 14:56:06 +00:00 committed by GitHub
parent b01ab44475
commit 5e1fe44bed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -818,12 +818,6 @@ impl<A: Readable, B: Readable, C: Readable, D: Readable> Readable for (A, B, C,
}
}
impl Writeable for [u8; 4] {
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error> {
writer.write_bytes(self)
}
}
/// Trait for types that can be added to a PMMR.
pub trait PMMRable: Writeable + Clone + Debug + DefaultHashable {
/// The type of element actually stored in the MMR data file.