Skip to content

Commit

Permalink
Delete MappedOwnedMutexGuard in preference for tokio::sync::MappedMut…
Browse files Browse the repository at this point in the history
…exGuard

MappedOwnedMutexGuard had an (as of yet unused) undefined behaviour case
in its implementation of map_mut. This has been superceded by tokio's
tokio-rs/tokio#2472 which used a better
implementation without undefined behaviour (using UnsafeCell instead).
  • Loading branch information
Dessix committed Jul 13, 2021
1 parent e41571f commit 2e15285
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
48 changes: 0 additions & 48 deletions snocat/src/util/mapped_owned_async_mutex.rs

This file was deleted.

2 changes: 0 additions & 2 deletions snocat/src/util/mod.rs
Expand Up @@ -20,12 +20,10 @@ use tokio::net::TcpStream;
pub mod cancellation;
pub mod dropkick;
pub mod framed;
mod mapped_owned_async_mutex;
pub(crate) mod merge_streams;
pub mod tunnel_stream;
pub mod validators;
pub(crate) mod vtdroppable;
pub use mapped_owned_async_mutex::MappedOwnedMutexGuard;

// HTTP protocol constant from quinn/examples/common
pub const ALPN_QUIC_HTTP: &[&[u8]] = &[b"hq-29"];
Expand Down

0 comments on commit 2e15285

Please sign in to comment.