From 7fc3112c749cdfbf85081a15a8df1b7fa0f2a024 Mon Sep 17 00:00:00 2001 From: Anton Zavodchikov Date: Tue, 21 Dec 2021 09:18:16 +0500 Subject: [PATCH] run `fmt` over code --- vlib/vweb/parse.v | 2 +- vlib/vweb/vweb.v | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/vweb/parse.v b/vlib/vweb/parse.v index 6a78e99227..85303eadeb 100644 --- a/vlib/vweb/parse.v +++ b/vlib/vweb/parse.v @@ -8,7 +8,7 @@ fn parse_middleware(args []MethodArgs, attrs []string) ?string { for arg in args { // ast.string_type_idx = 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') } } diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 79b660e308..d829936c60 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -558,8 +558,8 @@ fn handle_conn(mut conn net.TcpConn, mut app T, routes map[string]Route, midd } struct Firable_middleware { - method string - params []string + method string + params []string path_len int }