Skip to content

Commit

Permalink
Fix ambiguous struct import (rust-lang/rust#114095)
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerkindt committed Jan 16, 2024
1 parent 32c7311 commit 7af3fc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions asn1rs-model/src/model/protobuf/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::model::rust::*;
use crate::model::*;
use std::convert::Infallible;
use crate::model::{Charset, Definition, Model, Range, Rust, RustType, Size, Target};
use crate::model::rust::{EncodingOrdering, rust_module_name, rust_struct_or_enum_name, rust_variant_name};

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

#[cfg(test)]
mod tests {
use crate::model::Import;
use crate::model::rust::{DataVariant, Field};
use super::*;

#[test]
Expand Down

0 comments on commit 7af3fc4

Please sign in to comment.