Commit 549fbcf
committed
Address
This commit addresses the following warnings.
- Steps to reproduce:
```ruby
$ ruby -v
ruby 3.4.0dev (2024-10-26T13:20:34Z master 484ea00d2e) +PRISM [x86_64-linux]
$ RUBYOPT="--debug-frozen-string-literal" bundle exec thor spec
```
- Warnings addressed by this commit:
```
/path/to/thor/spec/base_spec.rb:322: warning: literal string will be frozen in the future
/path/to/thor/spec/base_spec.rb:321: info: the string was created here
```
```
/path/to/thor/spec/parser/options_spec.rb:121: warning: literal string will be frozen in the future
/path/to/thor/spec/parser/options_spec.rb:120: info: the string was created here
```
Refer to:
https://bugs.ruby-lang.org/issues/20205
ruby/ruby#11893warning: literal string will be frozen in the future
1 parent b19962a commit 549fbcf
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments