diff --git a/src/codegen/derive_debug.rs b/src/codegen/impl_debug.rs similarity index 100% rename from src/codegen/derive_debug.rs rename to src/codegen/impl_debug.rs diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs index ad4f65f4cb..8a9a5df569 100644 --- a/src/codegen/mod.rs +++ b/src/codegen/mod.rs @@ -1,4 +1,4 @@ -mod derive_debug; +mod impl_debug; mod error; mod helpers; pub mod struct_layout; @@ -1914,7 +1914,7 @@ impl CodeGenerator for CompInfo { } if needs_debug_impl { - let impl_ = derive_debug::gen_debug_impl( + let impl_ = impl_debug::gen_debug_impl( ctx, self.fields(), item, diff --git a/src/lib.rs b/src/lib.rs index 10bdc6f916..0eb6bbaec9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -247,7 +247,7 @@ impl Builder { output_vector.push("--no-derive-debug".into()); } - if !self.options.impl_debug { + if self.options.impl_debug { output_vector.push("--impl-debug".into()); }