Skip to content

Commit

Permalink
- update: generated commented now uses the @generated tag
Browse files Browse the repository at this point in the history
  • Loading branch information
RavenX8 committed Dec 19, 2024
1 parent 953d64e commit efaf8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/src/codegen/rust/codegen_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl<'a, W: Write> CodeSourceGenerator<'a, W> {

pub fn generate(&mut self, packet: &Packet) -> Result<()> {
let version = self.version.clone();
cg!(self, "/* Generated with IDL v{} */\n", version);
cg!(self, "/* This file is @generated with IDL v{} */\n", version);
cg!(self, r#"use bincode::{{Encode, Decode, enc::Encoder, de::Decoder, error::DecodeError}};"#);
cg!(self, r#"use bincode::de::read::Reader;"#);
cg!(self, r#"use bincode::enc::write::Writer;"#);
Expand Down

0 comments on commit efaf8c3

Please sign in to comment.