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 } - }