Skip to content

Commit 3753090

Browse files
committed
sq better msg ?
1 parent 4c75267 commit 3753090

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/web/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ pub enum AxumNope {
3939
}
4040

4141
// FUTURE: Ideally, the split between the 3 kinds of responses would
42-
// be done by having 3 kinds of enums in the first place instead of
43-
// just `AxumNope`, to keep the line statically type-checked
44-
// throughout instead of having the conversion?
42+
// be done by having multiple nested enums in the first place instead
43+
// of just `AxumNope`, to keep everything statically type-checked
44+
// throughout instead of having the potential for a runtime error.
4545

4646
impl AxumNope {
4747
fn into_error_response(self) -> ErrorResponse {

0 commit comments

Comments
 (0)