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

master
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;
/// OwnedStack allocates on heap and owns a non-guarded stack.
#[derive(Debug)]
pub struct OwnedStack(Box<[u8]>);
impl OwnedStack {

View File

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