codegen/enums: Add missing trait_impls::generate call
This function is responsible for generating a Display impl, and caused
unused std::fmt import previously.
-use super::function;
+use super::{function, trait_impls};
use crate::{
analysis::enums::Info,
codegen::general::{
@@ -128,6 +128,14 @@ fn generate_enum(
writeln!(w, "}}")?;
}
+ trait_impls::generate(
+ w,
+ &analysis.name,
+ &analysis.functions,
+ &analysis.specials,
+ None,
+ )?;
+
writeln!(w)?;
if config.generate_display_trait {
