marcel icon indicating copy to clipboard operation
marcel copied to clipboard

Warning in logs: "warning: literal string will be frozen in the future"

Open natebird opened this issue 8 months ago • 1 comments
trafficstars

I am seeing the following warning when running the test suite of a Rails app.

/home/vscode/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/marcel-1.0.4/lib/marcel/magic.rb:120: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)

Is this something in my code base or something in the Marcel gem? It looks like the gem is freezing all the strings so I'm not sure what to do with this warning.

natebird avatar Mar 20 '25 14:03 natebird

@natebird see https://github.com/rails/marcel/issues/121#issuecomment-2724474392

ron-shinall avatar Mar 21 '25 16:03 ron-shinall

See #123.

sheldonh avatar Jul 23 '25 10:07 sheldonh