From cac505318d814ec9870da9be3d20eb3b8a8cd38a Mon Sep 17 00:00:00 2001 From: null8626 Date: Sat, 28 Oct 2023 14:14:23 +0700 Subject: [PATCH] feat: add From String for Query --- src/bot.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bot.rs b/src/bot.rs index 92696bb..5dc5aad 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -674,3 +674,10 @@ where } } } + +impl From for Query { + #[inline(always)] + fn from(other: String) -> Self { + Self::from(&other) + } +}