I should really add some unit tests, shouldn't I
This commit is contained in:
parent
5b0a3268fa
commit
cf86e15cb7
|
@ -183,7 +183,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "actix-web-utils"
|
||||
version = "0.2.11"
|
||||
version = "0.2.12"
|
||||
dependencies = [
|
||||
"actix-web",
|
||||
"log",
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -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)),
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue