Skip to content

Commit

Permalink
Remove unused ostruct
Browse files Browse the repository at this point in the history
Since Ruby 3.3.5, Bundler shows the following warning when using
`ostruct`.

```
ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.
```
Ref: https://bugs.ruby-lang.org/issues/20309

As the message described, we need to add `ostruct` to the gemspec
to keep using it. But, it seems that `diff-lcs` doesn't use it.
So I just remove `require of it.
  • Loading branch information
y-yagi authored and halostatue committed Sep 11, 2024
1 parent 6922af6 commit 714bb8c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/diff/lcs/ldiff.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require "optparse"
require "ostruct"
require "diff/lcs/hunk"

module Diff::LCS::Ldiff # :nodoc:
Expand Down

0 comments on commit 714bb8c

Please sign in to comment.