fix Crystal 1.5.0 warnings

This commit is contained in:
Serdar Dogruyol 2022-06-29 13:31:28 +03:00
parent f8fc8ce8c8
commit 268e501a63
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@ require "../src/*"
include Kemal
class CustomLogHandler < Kemal::BaseLogHandler
def call(env)
call_next env
def call(context)
call_next(context)
end
def write(message)

View File

@ -27,8 +27,8 @@ module Kemal
end
end
def call(env : HTTP::Server::Context)
call_next(env)
def call(context : HTTP::Server::Context)
call_next(context)
end
# Processes the path based on `only` paths which is a `Array(String)`.