mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 04:50:34 +00:00
Implement StableDeref for singleton::Box
This commit is contained in:
parent
e3f02b06b2
commit
bb712eb2b0
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Added `StableDeref` implementation for `pool::Box` and `pool::singleton::Box`.
|
||||
|
||||
## [v0.5.3] - 2020-01-27
|
||||
|
||||
### Added
|
||||
|
@ -375,7 +375,7 @@ unsafe impl<T, S> Send for Box<T, S> where T: Send {}
|
||||
|
||||
unsafe impl<T, S> Sync for Box<T, S> where T: Sync {}
|
||||
|
||||
unsafe impl<T> stable_deref_trait::StableDeref for Box<T> {}
|
||||
unsafe impl<T> stable_deref_trait::StableDeref for Box<T> {}
|
||||
|
||||
impl<A> AsSlice for Box<A>
|
||||
where
|
||||
|
@ -160,6 +160,8 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl<P: Pool> stable_deref_trait::StableDeref for Box<P> {}
|
||||
|
||||
impl<P> fmt::Debug for Box<P>
|
||||
where
|
||||
P: Pool,
|
||||
|
Loading…
x
Reference in New Issue
Block a user