linera-protocol icon indicating copy to clipboard operation
linera-protocol copied to clipboard

fix: Optimized file Update build.rs

Open mdqst opened this issue 11 months ago • 1 comments

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.

mdqst avatar Jan 15 '25 11:01 mdqst

@ma2bd: I think it's necessary: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.display

afck avatar Feb 05 '25 15:02 afck

Thanks again for the PR. It is correct but I think using format! is just fine.

ma2bd avatar Apr 03 '25 00:04 ma2bd