Skip to content

Commit

Permalink
Remove previous uuid implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
PThorpe92 committed Jan 12, 2025
1 parent 1384e69 commit ac11b62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 344 deletions.
343 changes: 0 additions & 343 deletions core/ext/uuid.rs

This file was deleted.

4 changes: 3 additions & 1 deletion extensions/uuid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ declare_scalar_functions! {
let Some(text) = args[0].to_text() else {
return Value::null();
};
let uuid = uuid::Uuid::parse_str(unsafe {text.as_str()}).unwrap();
let Ok(uuid) = uuid::Uuid::parse_str(unsafe {text.as_str()}) else {
return Value::null();
};
let unix = uuid_to_unix(uuid.as_bytes());
Value::from_integer(unix as i64)
}
Expand Down

0 comments on commit ac11b62

Please sign in to comment.