Skip to content

Commit bb712eb

Browse files
committed
Implement StableDeref for singleton::Box
1 parent e3f02b0 commit bb712eb

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Added `StableDeref` implementation for `pool::Box` and `pool::singleton::Box`.
13+
1014
## [v0.5.3] - 2020-01-27
1115

1216
### Added

src/pool/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ unsafe impl<T, S> Send for Box<T, S> where T: Send {}
375375

376376
unsafe impl<T, S> Sync for Box<T, S> where T: Sync {}
377377

378-
unsafe impl<T> stable_deref_trait::StableDeref for Box<T> {}
378+
unsafe impl<T> stable_deref_trait::StableDeref for Box<T> {}
379379

380380
impl<A> AsSlice for Box<A>
381381
where

src/pool/singleton.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ where
160160
}
161161
}
162162

163+
unsafe impl<P: Pool> stable_deref_trait::StableDeref for Box<P> {}
164+
163165
impl<P> fmt::Debug for Box<P>
164166
where
165167
P: Pool,

0 commit comments

Comments
 (0)