run `fmt` over code
parent
e7e98b9180
commit
7fc3112c74
|
@ -8,7 +8,7 @@ fn parse_middleware(args []MethodArgs, attrs []string) ?string {
|
||||||
for arg in args {
|
for arg in args {
|
||||||
// ast.string_type_idx = 20
|
// ast.string_type_idx = 20
|
||||||
if arg.typ != 20 {
|
if arg.typ != 20 {
|
||||||
return error("middleware arguments should be string type, `$arg.name` does not meet that rule")
|
return error('middleware arguments should be string type, `$arg.name` does not meet that rule')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -558,8 +558,8 @@ fn handle_conn<T>(mut conn net.TcpConn, mut app T, routes map[string]Route, midd
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Firable_middleware {
|
struct Firable_middleware {
|
||||||
method string
|
method string
|
||||||
params []string
|
params []string
|
||||||
path_len int
|
path_len int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue