We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c73c07a commit e5535f8Copy full SHA for e5535f8
src/hole.rs
@@ -77,7 +77,7 @@ impl HoleList {
77
/// Returns information about the first hole for test purposes.
78
#[cfg(test)]
79
pub fn first_hole(&self) -> Option<(usize, usize)> {
80
- self.first.next.as_ref().map(|hole| (**hole as usize, unsafe { hole.get().size }))
+ self.first.next.as_ref().map(|hole| (hole.as_ptr() as usize, unsafe { hole.as_ref().size }))
81
}
82
83
0 commit comments