Skip to content

Commit bb47f26

Browse files
benjamintliMaxxen
authored andcommitted
Make DuckString's constructor public
1 parent ffa3f4e commit bb47f26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/duckdb/src/types/string.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ pub struct DuckString<'a> {
66
}
77

88
impl<'a> DuckString<'a> {
9+
/// Creates a DuckString from the underlying duck string type
910
#[allow(dead_code)]
10-
pub(crate) fn new(ptr: &'a mut duckdb_string_t) -> Self {
11+
pub fn new(ptr: &'a mut duckdb_string_t) -> Self {
1112
DuckString { ptr }
1213
}
1314
}

0 commit comments

Comments
 (0)