Skip to content

Commit

Permalink
feat: add From String for Query
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Oct 28, 2023
1 parent 5b0bb38 commit cac5053
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,3 +674,10 @@ where
}
}
}

impl From<String> for Query {
#[inline(always)]
fn from(other: String) -> Self {
Self::from(&other)
}
}

0 comments on commit cac5053

Please sign in to comment.