Skip to content

Commit 4a8353f

Browse files
committed
change trait bounds to match macro constraints
1 parent 3d6b932 commit 4a8353f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ use std::collections::HashSet;
1414
/// This trait is marked as `#[doc(hidden)]` because it's not intended to be used directly.
1515
/// Instead, use the [`PointerPrint`] trait which provides a more user-friendly interface
1616
pub trait DerefDebugPrint {
17-
fn pointer_debug_internal<M: ::memflow::mem::MemoryView>(
17+
fn pointer_debug_internal<M>(
1818
&self,
1919
mem: &mut M,
2020
depth: usize,
2121
max_depth: usize,
2222
visited_addresses: &mut ::std::collections::HashSet<u64>,
23-
);
23+
) where
24+
M: memflow::mem::MemoryView;
2425
}
2526

2627
/// High-level trait for printing data structures with automatic pointer dereferencing.

0 commit comments

Comments
 (0)