Skip to content

Commit

Permalink
Force client to be Send as well as Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaiah Becker-Mayer committed Jul 31, 2023
1 parent b023ae7 commit fe6747a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/srv/desktop/rdp/rdpclient/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ pub struct Client {
go_ref: usize,
}

/// Forces the compiler to check that the Client struct is Sync.
/// Forces the compiler to check that the Client struct is Send + Sync.
/// See the README for more details.
const _: () = {
const fn assert_sync<T: Sync>() {}
assert_sync::<Client>();
const fn assert_send_sync<T: Send + Sync>() {}
assert_send_sync::<Client>();
};

impl Client {
Expand Down

0 comments on commit fe6747a

Please sign in to comment.