mirror of
https://gitea.invidious.io/iv-org/shard-radix.git
synced 2024-08-15 00:43:21 +00:00
spec(Tree): Replace deprecated MemoryIO
Crystal 0.20 introduced a change so `MemoryIO` is know known as `IO::Memory`. Since no current spec was using the deprecation redirect, there was warning raised. Fixes #16
This commit is contained in:
parent
bed664a936
commit
40b8e26ba5
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ require "../spec_helper"
|
|||
module Radix
|
||||
class Tree(T)
|
||||
@show_deprecations = false
|
||||
@stderr : MemoryIO?
|
||||
@stderr : IO::Memory?
|
||||
|
||||
def show_deprecations!
|
||||
@show_deprecations = true
|
||||
|
@ -13,7 +13,7 @@ module Radix
|
|||
|
||||
private def deprecation(message)
|
||||
if @show_deprecations
|
||||
@stderr ||= MemoryIO.new
|
||||
@stderr ||= IO::Memory.new
|
||||
@stderr.not_nil!.puts message
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue