Skip to content

Commit f693735

Browse files
solontseviffyio
andauthored
single_quoted_string updated to accept various string types
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
1 parent 2575081 commit f693735

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ pub fn number(n: &str) -> Value {
366366
Value::Number(n.parse().unwrap(), false)
367367
}
368368

369-
/// Creates a `Value::SingleQuotedString`
370-
pub fn single_quoted_string(s: &str) -> Value {
371-
Value::SingleQuotedString(s.to_string())
369+
/// Creates a [Value::SingleQuotedString]
370+
pub fn single_quoted_string(s: impl Into<String>) -> Value {
371+
Value::SingleQuotedString(s.into())
372372
}
373373

374374
pub fn table_alias(name: impl Into<String>) -> Option<TableAlias> {

0 commit comments

Comments
 (0)