I suspect that was in the initial prompt that was used to generate this and the LLM decided Rust syntax was preferable.
Yes, it looks almost exactly like Rust. Expectations violation! :)