Skip to content

Commit

Permalink
Should be sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Aug 14, 2022
1 parent 6309a9a commit 0328976
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions packages/yew/src/platform/pinned/mpsc.rs
Expand Up @@ -68,7 +68,7 @@ impl<T> UnboundedReceiver<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -95,7 +95,7 @@ impl<T> Stream for UnboundedReceiver<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -118,7 +118,7 @@ impl<T> FusedStream for UnboundedReceiver<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -133,7 +133,7 @@ impl<T> Drop for UnboundedReceiver<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -155,7 +155,7 @@ impl<T> UnboundedSender<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any function that have already acquired a mutable
// reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -180,7 +180,7 @@ impl<T> UnboundedSender<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any function that have already acquired a mutable
// reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -199,7 +199,7 @@ impl<T> Clone for UnboundedSender<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -216,7 +216,7 @@ impl<T> Drop for UnboundedSender<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand Down
8 changes: 4 additions & 4 deletions packages/yew/src/platform/pinned/oneshot.rs
Expand Up @@ -36,7 +36,7 @@ impl<T> Future for Receiver<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand Down Expand Up @@ -68,7 +68,7 @@ impl<T> Drop for Receiver<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -90,7 +90,7 @@ impl<T> Sender<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand All @@ -116,7 +116,7 @@ impl<T> Drop for Sender<T> {
//
// We can acquire a mutable reference without checking as:
//
// - This type is !Send.
// - This type is !Sync.
// - This function is not used by any other functions and hence uniquely owns the
// mutable reference.
// - The mutable reference is dropped at the end of this function.
Expand Down

0 comments on commit 0328976

Please sign in to comment.