projectfluent / fluent-rs

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

[DX Enhancement] Make fluent_args works with trailing comma #266

Closed juliancoffee closed 1 year ago

juliancoffee commented 1 year ago

Currently, this code won't compile:

fluent_args! {
  "name" => "World",
}

Because fluent_args! doesn't handle trailing commas. The fix would be trivial, so I could do a PR if this is appreciated.

zbraniecki commented 1 year ago

I'd appreciate it!

juliancoffee commented 1 year ago

@zbraniecki done!)