Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sxt-core/src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ impl TableIdentifier {
}

/// Takes a given Table Identifier and coerces it to uppercase
pub fn normalized(ident: TableIdentifier) -> Self {
let name = from_utf8(&ident.name).unwrap();
let namespace = from_utf8(&ident.namespace).unwrap();
Self::from_str_unchecked(name, namespace)
pub fn normalized(ident: TableIdentifier) -> Result<Self, Utf8Error> {
let name = from_utf8(&ident.name)?;
let namespace = from_utf8(&ident.namespace)?;
Ok(Self::from_str_unchecked(name, namespace))
}

Comment thread
tlovell-sxt marked this conversation as resolved.
/// Optimistically create a Table Identifier from a given name and namespace. If the
Expand Down