Skip to content

Commit b70d4e9

Browse files
committed
f use core not std
1 parent c804a9d commit b70d4e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/ser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ pub(crate) struct VecReadWrapper<T: Readable>(pub Vec<T>);
245245
impl<T: Readable> Readable for VecReadWrapper<T> {
246246
fn read<R: Read>(reader: &mut R) -> Result<Self, DecodeError> {
247247
let count: u64 = Readable::read(reader)?;
248-
let mut values = Vec::with_capacity(cmp::min(count, MAX_ALLOC_SIZE / (::std::mem::size_of::<T>() as u64)) as usize);
248+
let mut values = Vec::with_capacity(cmp::min(count, MAX_ALLOC_SIZE / (core::mem::size_of::<T>() as u64)) as usize);
249249
for _ in 0..count {
250250
match Readable::read(reader) {
251251
Ok(v) => { values.push(v); },

0 commit comments

Comments
 (0)