Skip to content

Commit 084dffd

Browse files
authored
unwrap_or_default()
1 parent bd538c4 commit 084dffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl ValueIndexConfiguration {
3333
/// The where clause is optional and is a predicate expression defining conditions for indexing documents.
3434
pub fn new(query_language: QueryLanguage, expressions: &str, where_: Option<&str>) -> Self {
3535
let expressions_slices = from_str(expressions);
36-
let where_slices = from_str(where_.unwrap_or(""));
36+
let where_slices = from_str(where_.unwrap_or_default());
3737
Self {
3838
cbl_ref: CBLValueIndexConfiguration {
3939
expressionLanguage: query_language as u32,

0 commit comments

Comments
 (0)