Skip to content

Commit

Permalink
Merge pull request #121 from MarcGuiselin/remove_rust_wrap_unused_cod…
Browse files Browse the repository at this point in the history
…e_warnings

Ignore unused code warnings in rust wrap bindings
  • Loading branch information
dOrgJelli authored Nov 9, 2023
2 parents 1d114b4 + 016058e commit 2a15ccb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Disable unused code warnings for this entire module
#![allow(unused)]

pub mod entry;
pub mod prelude;
pub mod custom_type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Disable unused code warnings for this entire module
#![allow(unused)]

pub mod entry;
pub mod prelude;
pub mod module;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Disable unused code warnings for this entire module
#![allow(unused)]

pub mod entry;
pub mod prelude;
pub mod custom_type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Disable unused code warnings for this entire module
#![allow(unused)]

pub mod entry;
pub mod prelude;
pub mod env_object;
Expand Down
5 changes: 4 additions & 1 deletion implementations/wrap-rust/src/templates/mod_rs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
lazy_static! {
static ref NAME: String = "mod.rs".to_string();
static ref SOURCE: String = r#"pub mod entry;
static ref SOURCE: String = r#"// Disable unused code warnings for this entire module
#![allow(unused)]
pub mod entry;
pub mod prelude;
{{#each objectTypes}}
pub mod {{detect_keyword (to_lower type)}};
Expand Down

0 comments on commit 2a15ccb

Please sign in to comment.