From b450bc09f5dbee50701bd9543f0dc5ffd37e502b Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Mon, 27 Jul 2020 18:14:20 +0600 Subject: [PATCH] Fmt --- src/types/inline_query.rs | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/types/inline_query.rs b/src/types/inline_query.rs index 03916fea..a1c15fc8 100644 --- a/src/types/inline_query.rs +++ b/src/types/inline_query.rs @@ -38,12 +38,16 @@ impl InlineQuery { Self { id: id.into(), from, location: None, query: query.into(), offset: offset.into() } } - pub fn id(mut self, val: S) -> Self where S: Into { - self.id = val.into();self + pub fn id(mut self, val: S) -> Self + where + S: Into, + { + self.id = val.into(); + self } pub fn from(mut self, val: User) -> Self { - self.from =val; + self.from = val; self } @@ -52,12 +56,19 @@ impl InlineQuery { self } - pub fn query(mut self, val: S) -> Self where S: Into { - self.query = val.into();self + pub fn query(mut self, val: S) -> Self + where + S: Into, + { + self.query = val.into(); + self } - pub fn offset(mut self, val: S) -> Self where S: Into { - self.offset = val.into();self + pub fn offset(mut self, val: S) -> Self + where + S: Into, + { + self.offset = val.into(); + self } - }