From 032897674ef38795577819c1947c4e07b2f1b614 Mon Sep 17 00:00:00 2001 From: Kaede Hoshikawa Date: Mon, 15 Aug 2022 07:45:40 +0900 Subject: [PATCH] Should be sync. --- 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 cac9fae4b43..099d23cbb95 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 !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. @@ -95,7 +95,7 @@ impl Stream for UnboundedReceiver { // // 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. @@ -118,7 +118,7 @@ impl FusedStream for UnboundedReceiver { // // 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. @@ -133,7 +133,7 @@ impl Drop for UnboundedReceiver { // // 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. @@ -155,7 +155,7 @@ impl UnboundedSender { // // 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. @@ -180,7 +180,7 @@ impl UnboundedSender { // // 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. @@ -199,7 +199,7 @@ impl Clone for UnboundedSender { // // 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. @@ -216,7 +216,7 @@ impl Drop for UnboundedSender { // // 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. diff --git a/packages/yew/src/platform/pinned/oneshot.rs b/packages/yew/src/platform/pinned/oneshot.rs index 2d57e128c61..ac21058eae2 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 !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. @@ -68,7 +68,7 @@ impl Drop for Receiver { // // 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. @@ -90,7 +90,7 @@ impl Sender { // // 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. @@ -116,7 +116,7 @@ impl Drop for Sender { // // 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.