Skip to content

Commit

Permalink
Rename package path elements based on rust module name rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerkindt committed Sep 6, 2021
1 parent 624a697 commit 1c460aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asn1rs-model/src/gen/protobuf.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::gen::Generator;
use crate::model::rust::rust_module_name;
use crate::model::Protobuf;
use crate::model::ProtobufType;
use crate::model::{Definition, ObjectIdentifierComponent};
Expand Down Expand Up @@ -237,6 +238,7 @@ impl ProtobufDefGenerator {
format!("_{}", number)
}
})
.map(|name| rust_module_name(&name, false))
.collect::<Vec<String>>()
.join(".")
} else {
Expand Down

0 comments on commit 1c460aa

Please sign in to comment.