You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let x = call_fn();
if x.is_bad() {
return core::Status::NGX_ERROR.into();
}
instead of more canonical let x = call_fn()?;.
We should convert as much of these cases as possible to a proper use of Result and std::error::Error implementations.
Some macro magic might be necessary to wrap existing nginx-sys APIs.
The text was updated successfully, but these errors were encountered:
Yet another awkward pattern we repeat a lot
instead of more canonical
let x = call_fn()?;
.We should convert as much of these cases as possible to a proper use of
Result
andstd::error::Error
implementations.Some macro magic might be necessary to wrap existing
nginx-sys
APIs.The text was updated successfully, but these errors were encountered: