Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Jan 4, 2024
1 parent f15af9f commit dbac666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/table/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ impl ColumnDef {

/// Set column type as string
pub fn string(&mut self) -> &mut Self {
self.types = Some(ColumnType::String(None));
self.types = Some(ColumnType::String(Default::default()));
self
}

Expand Down
4 changes: 2 additions & 2 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,12 @@ impl ValueType for Cow<'_, str> {
}

fn column_type() -> ColumnType {
ColumnType::String(None)
ColumnType::String(Default::default())
}
}

type_to_box_value!(Vec<u8>, Bytes, Binary(BlobSize::Blob(None)));
type_to_box_value!(String, String, String(None));
type_to_box_value!(String, String, String(Default::default()));

#[cfg(feature = "with-json")]
#[cfg_attr(docsrs, doc(cfg(feature = "with-json")))]
Expand Down

0 comments on commit dbac666

Please sign in to comment.