From b7d549756af47114f9c463c643e2fa0220f3ca89 Mon Sep 17 00:00:00 2001 From: kozabrada123 Date: Fri, 16 Aug 2024 16:41:51 +0200 Subject: [PATCH] aa --- src/types/entities/user.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/types/entities/user.rs b/src/types/entities/user.rs index 9b619c3..0ce4c9d 100644 --- a/src/types/entities/user.rs +++ b/src/types/entities/user.rs @@ -842,14 +842,14 @@ pub struct PremiumUsageData { pub value: usize, } -impl Into for usize { - fn into(self) -> PremiumUsageData { - PremiumUsageData { value: self } +impl From for usize { + fn from(value: PremiumUsageData) -> Self { + value.value } } -impl Into for PremiumUsageData { - fn into(self) -> usize { - self.value +impl From for PremiumUsageData { + fn from(value: usize) -> Self { + PremiumUsageData { value } } }