1
0
Fork 0

Add #[derive(Debug)] for SliceStack and OwnedStack.

This commit is contained in:
whitequark 2016-08-30 06:49:43 +00:00 committed by edef
parent 5a77a01863
commit e02ef03304
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ use self::alloc::raw_vec::RawVec;
use self::alloc::boxed::Box; use self::alloc::boxed::Box;
/// OwnedStack allocates on heap and owns a non-guarded stack. /// OwnedStack allocates on heap and owns a non-guarded stack.
#[derive(Debug)]
pub struct OwnedStack(Box<[u8]>); pub struct OwnedStack(Box<[u8]>);
impl OwnedStack { impl OwnedStack {

View File

@ -4,6 +4,7 @@
/// SliceStack holds a non-guarded stack allocated elsewhere and provided as a mutable /// SliceStack holds a non-guarded stack allocated elsewhere and provided as a mutable
/// slice. /// slice.
#[derive(Debug)]
pub struct SliceStack<'a>(pub &'a mut [u8]); pub struct SliceStack<'a>(pub &'a mut [u8]);
impl<'a> ::stack::Stack for SliceStack<'a> { impl<'a> ::stack::Stack for SliceStack<'a> {