1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-27 07:19:04 +02:00

remove reference to master

This commit is contained in:
Nikolay Kim
2018-04-10 10:29:10 -07:00
parent 81ac905c7b
commit fd87eb59f8
3 changed files with 5 additions and 13 deletions

View File

@ -39,7 +39,7 @@ pub(crate) struct SharedBytes(
impl Drop for SharedBytes {
fn drop(&mut self) {
if let Some(ref pool) = self.1 {
if let Some(pool) = self.1.take() {
if let Some(bytes) = self.0.take() {
if Rc::strong_count(&bytes) == 1 {
pool.release_bytes(bytes);