Skip to content

Commit

Permalink
style: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Feb 18, 2024
1 parent a4b12d8 commit c3a5e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ fn main() {
// relative to this `build.rs` file.
if let Ok(path) = env::var("YRX_PROTOC_CONFIG_FILE") {
let file = File::open(path.as_str())
.expect(&*format!("error opening {}", path));
.expect(*format!("error opening {}", path));

let reader = BufReader::new(file);
let config: ProtocConfig = serde_json::from_reader(reader)
.expect(&*format!("invalid config file {}", path));
.expect(*format!("invalid config file {}", path));

for path in config.includes {
let path = fs::canonicalize(path).unwrap();
Expand Down

0 comments on commit c3a5e08

Please sign in to comment.