fix: fully qualify create_error in create_database_error macro

This commit is contained in:
Paul Makles
2024-04-07 18:11:37 +01:00
parent 2de7598f8d
commit 4e7049d51e

View File

@@ -147,7 +147,7 @@ macro_rules! create_error {
#[macro_export] #[macro_export]
macro_rules! create_database_error { macro_rules! create_database_error {
( $operation: expr, $collection: expr ) => { ( $operation: expr, $collection: expr ) => {
create_error!(DatabaseError { $crate::create_error!(DatabaseError {
operation: $operation.to_string(), operation: $operation.to_string(),
collection: $collection.to_string() collection: $collection.to_string()
}) })