ignore `use` attribute in parse

pull/12916/head
Anton Zavodchikov 2021-12-21 07:09:54 +05:00
parent ed2d1286da
commit 0efd083e7c
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ fn parse_attrs(name string, attrs []string) ?([]http.Method, string) {
return [http.Method.get], '/$name'
}
mut x := attrs.clone()
mut x := attrs.clone().filter(it.to_lower() != 'use')
mut methods := []http.Method{}
mut path := ''