Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

literal string warning in byte_buffer.rb:69 with ruby 3.4.1 #58

Open
Aqualon opened this issue Jan 6, 2025 · 0 comments
Open

literal string warning in byte_buffer.rb:69 with ruby 3.4.1 #58

Aqualon opened this issue Jan 6, 2025 · 0 comments

Comments

@Aqualon
Copy link

Aqualon commented Jan 6, 2025

Not sure about the state of ione, we use it as dependency of cassandra-driver gem. In ruby 3.4.x there are warnings logged, if string literals are mutated:

ione-1.2.5/lib/ione/byte_buffer.rb:69: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)

Mutation is in

@write_buffer << bytes

The literal itself is defined in
@write_buffer = ''

and in
@write_buffer = ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant