Skip to content

Commit 86aaf0c

Browse files
committed
Add ByteRepr on T
1 parent 1cb1f90 commit 86aaf0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎libcc2rs/src/rc.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ impl ByteRepr for AnyPtr {
14201420
}
14211421
}
14221422

1423-
impl<T: 'static> Ptr<T> {
1423+
impl<T: ByteRepr + 'static> Ptr<T> {
14241424
pub fn to_int(&self) -> usize {
14251425
let mut buf = vec![0u8; Self::byte_size()];
14261426
self.to_bytes(&mut buf);

0 commit comments

Comments
 (0)