projectfluent / fluent-rs

Rust implementation of Project Fluent
https://projectfluent.org
Apache License 2.0
1.07k stars 96 forks source link

`Localization::format_value` takes `&mut self` #147

Closed Follpvosten closed 4 years ago

Follpvosten commented 4 years ago

fluent_fallback::Localization::format_value takes self by mutable reference where I don't think it is necessary (when I remove the mut, it still compiles).

I'm not sure if that's wrong or intentional; in case it shouldn't be like that, should I open a PR?

zbraniecki commented 4 years ago

Thank you for reporting! Fixed in https://github.com/projectfluent/fluent-rs/commit/4123cf37f9b531d3191d52b08a1e48785dccb00a