Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Dec 5, 2023
1 parent 5672800 commit c8a6e7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "futhark-bindgen"
version = "0.2.5"
version = "0.2.6"
edition = "2021"
authors = ["Zach Shipko <zachshipko@gmail.com>"]
license = "ISC"
Expand Down Expand Up @@ -28,4 +28,4 @@ features = ["build"]
[[bin]]
name = "futhark-bindgen"
required-features = ["bin"]
path = "src/bin/main.rs"
path = "src/bin/main.rs"
2 changes: 1 addition & 1 deletion src/generate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub trait Generate {
}

fn rust() -> Box<impl Generate> {
Box::new(Rust::default())
Box::<Rust>::default()
}

fn ocaml(config: &Config) -> Box<impl Generate> {
Expand Down
2 changes: 1 addition & 1 deletion src/generate/ocaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl OCaml {
.collect();

let mli_path = config.output_path.with_extension("mli");
let mli_file = std::fs::File::create(&mli_path)?;
let mli_file = std::fs::File::create(mli_path)?;
Ok(OCaml {
typemap,
ba_map,
Expand Down

0 comments on commit c8a6e7a

Please sign in to comment.