linera-protocol
linera-protocol copied to clipboard
fix: Optimized file Update build.rs
Motivation
I noticed that using format! was unnecessary since display() already returns an object that can be passed directly to File::create.
I simplified and optimized the code to remove this redundancy.
@ma2bd: I think it's necessary: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.display
Thanks again for the PR. It is correct but I think using format! is just fine.