Fix broke compile

This commit is contained in:
Paul Masurel
2017-05-11 20:57:32 +09:00
parent 9f9e588905
commit 4c4c28e2c4

View File

@@ -43,14 +43,6 @@ impl Term {
BigEndian::write_u32(&mut self.0[0..4], field.0);
}
/// Returns the field.
pub fn set_field(&mut self, field: Field) {
if self.0.len() < 4 {
self.0.resize(4, 0u8);
}
BigEndian::write_u32(&mut self.0[0..4], field.0);
}
/// Builds a term given a field, and a u64-value
///
/// Assuming the term has a field id of 1, and a u64 value of 3234,