Skip to content

Commit 7af3fc4

Browse files
committed
Fix ambiguous struct import (rust-lang/rust#114095)
1 parent 32c7311 commit 7af3fc4

File tree

1 file changed

+4
-2
lines changed
  • asn1rs-model/src/model/protobuf

1 file changed

+4
-2
lines changed

asn1rs-model/src/model/protobuf/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use crate::model::rust::*;
2-
use crate::model::*;
31
use std::convert::Infallible;
2+
use crate::model::{Charset, Definition, Model, Range, Rust, RustType, Size, Target};
3+
use crate::model::rust::{EncodingOrdering, rust_module_name, rust_struct_or_enum_name, rust_variant_name};
44

55
const TUPLE_VARIABLE_NAME_REPLACEMENT: &str = "value";
66
const DATAENUM_VARIABLE_NAME_REPLACEMENT: &str = "value";
@@ -232,6 +232,8 @@ pub fn proto_definition_name(name: &str) -> String {
232232

233233
#[cfg(test)]
234234
mod tests {
235+
use crate::model::Import;
236+
use crate::model::rust::{DataVariant, Field};
235237
use super::*;
236238

237239
#[test]

0 commit comments

Comments
 (0)