I should really add some unit tests, shouldn't I
This commit is contained in:
parent
5b0a3268fa
commit
cf86e15cb7
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -183,7 +183,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "actix-web-utils"
|
name = "actix-web-utils"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-web",
|
"actix-web",
|
||||||
"log",
|
"log",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-web-utils"
|
name = "actix-web-utils"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Franklin E. Blanco"]
|
authors = ["Franklin E. Blanco"]
|
||||||
description = "Just some useful addons for actix web."
|
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 {
|
macro_rules! wrap_generic_error_in_wrapper {
|
||||||
( $e:expr ) => {
|
( $e:expr ) => {
|
||||||
match $e {
|
match $e {
|
||||||
Ok(value) => value,
|
Ok(value) => Ok(value),
|
||||||
Err(error) => actix_web_utils::extensions::generic_error::GenericError::wrap(error),
|
Err(error) => Err(actix_web_utils::extensions::generic_error::GenericError::wrap(error)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user