Skip to content

Commit

Permalink
Merge pull request #1035 from nobu/fix-warnings
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
soutaro authored Jun 19, 2022
2 parents a4995e6 + 5af8862 commit 2778a91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/rbs/locator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,5 @@ def bar: [X < Numeric] () -> X
assert_instance_of AST::Members::MethodDefinition, cs[4]
assert_instance_of AST::Declarations::Module, cs[5]
end
end
end
end
2 changes: 1 addition & 1 deletion test/rbs/resolver/constant_resolver_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Foo
manager.build do |env|
builder = DefinitionBuilder.new(env: env)
resolver = Resolver::ConstantResolver.new(builder: builder)
namespace = Namespace.parse("::Foo")
Namespace.parse("::Foo")

resolver.resolve(:Name, context: [nil, TypeName("::Foo")]).tap do |constant|
assert_instance_of Constant, constant
Expand Down
2 changes: 1 addition & 1 deletion test/tools/sort_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def assert_sort(expected, original)
actual = Tempfile.create('rbs-sort-test-') do |f|
f.write original
f.close
system File.join(__dir__, '../../bin/sort'), f.path, exception: true
system File.join(__dir__, '../../bin/sort'), f.path, exception: true, out: IO::NULL

File.read(f.path)
end
Expand Down

0 comments on commit 2778a91

Please sign in to comment.