From ca58767372cc5143763fc9fb137ea813e21523ea Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sun, 21 Jan 2024 17:10:24 +0100 Subject: [PATCH] Rename to_shared to into_shared --- src/types/entities/mod.rs | 2 +- tests/common/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types/entities/mod.rs b/src/types/entities/mod.rs index 8a06c35..3f075ce 100644 --- a/src/types/entities/mod.rs +++ b/src/types/entities/mod.rs @@ -124,7 +124,7 @@ pub trait Composite { vec } - fn to_shared(self) -> Shared + fn into_shared(self) -> Shared where Self: Sized, { diff --git a/tests/common/mod.rs b/tests/common/mod.rs index eae2b26..a267125 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -118,9 +118,9 @@ pub(crate) async fn setup() -> TestBundle { urls, user, instance, - guild: guild.to_shared(), - role: role.to_shared(), - channel: channel.to_shared(), + guild: guild.into_shared(), + role: role.into_shared(), + channel: channel.into_shared(), } }