I should really add some unit tests, shouldn't I

This commit is contained in:
Franklin 2022-08-31 14:39:30 -04:00
parent 5b0a3268fa
commit cf86e15cb7
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -183,7 +183,7 @@ dependencies = [
[[package]]
name = "actix-web-utils"
version = "0.2.11"
version = "0.2.12"
dependencies = [
"actix-web",
"log",

View File

@ -1,6 +1,6 @@
[package]
name = "actix-web-utils"
version = "0.2.11"
version = "0.2.12"
edition = "2021"
authors = ["Franklin E. Blanco"]
description = "Just some useful addons for actix web."

View File

@ -33,8 +33,8 @@ macro_rules! unwrap_or_return_handled_error {
macro_rules! wrap_generic_error_in_wrapper {
( $e:expr ) => {
match $e {
Ok(value) => value,
Err(error) => actix_web_utils::extensions::generic_error::GenericError::wrap(error),
Ok(value) => Ok(value),
Err(error) => Err(actix_web_utils::extensions::generic_error::GenericError::wrap(error)),
}
}
}