Skip to content

Commit b45ea9b

Browse files
committed
Made box StableDeref
1 parent f32038d commit b45ea9b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ hash32 = "0.1.0"
3737
version = "1"
3838
optional = true
3939
default-features = false
40+
41+
[dependencies.stable_deref_trait]
42+
version = "1"
43+
default-features = false

src/pool/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ 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> {}
379+
378380
impl<A> AsSlice for Box<A>
379381
where
380382
A: AsSlice,

0 commit comments

Comments
 (0)