From 177c6cb5f1de23d0f979d01b2fd7374f5ba29af9 Mon Sep 17 00:00:00 2001 From: Kaede Hoshikawa Date: Mon, 15 Aug 2022 07:46:38 +0900 Subject: [PATCH] Actually should be both. --- packages/yew/src/platform/pinned/mpsc.rs | 16 ++++++++-------- packages/yew/src/platform/pinned/oneshot.rs | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/yew/src/platform/pinned/mpsc.rs b/packages/yew/src/platform/pinned/mpsc.rs index 099d23cbb95..f7fa3e9a46b 100644 --- a/packages/yew/src/platform/pinned/mpsc.rs +++ b/packages/yew/src/platform/pinned/mpsc.rs @@ -68,7 +68,7 @@ impl UnboundedReceiver { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -95,7 +95,7 @@ impl Stream for UnboundedReceiver { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -118,7 +118,7 @@ impl FusedStream for UnboundedReceiver { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -133,7 +133,7 @@ impl Drop for UnboundedReceiver { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -155,7 +155,7 @@ impl UnboundedSender { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -180,7 +180,7 @@ impl UnboundedSender { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -199,7 +199,7 @@ impl Clone for UnboundedSender { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -216,7 +216,7 @@ impl Drop for UnboundedSender { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. diff --git a/packages/yew/src/platform/pinned/oneshot.rs b/packages/yew/src/platform/pinned/oneshot.rs index ac21058eae2..db35fc4d115 100644 --- a/packages/yew/src/platform/pinned/oneshot.rs +++ b/packages/yew/src/platform/pinned/oneshot.rs @@ -36,7 +36,7 @@ impl Future for Receiver { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -68,7 +68,7 @@ impl Drop for Receiver { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -90,7 +90,7 @@ impl Sender { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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. @@ -116,7 +116,7 @@ impl Drop for Sender { // // We can acquire a mutable reference without checking as: // - // - This type is !Sync. + // - This type is !Sync and !Send. // - 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.