Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rasn-compiler/src/generator/rasn/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ use crate::intermediate::{
ToplevelInformationDefinition,
},
types::Optionality,
ASN1Type, ASN1Value, AsnTag, ToplevelDefinition, ToplevelTypeDefinition, ToplevelValueDefinition,
ASN1Type, ASN1Value, AsnTag, ToplevelDefinition, ToplevelTypeDefinition,
ToplevelValueDefinition,
};

use super::{
Expand Down
17 changes: 3 additions & 14 deletions rasn-compiler/src/intermediate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ pub mod parameterization;
pub mod types;
pub mod utils;

use std::{
borrow::Cow,
cell::RefCell,
collections::BTreeMap,
ops::Add,
rc::Rc,
sync::LazyLock,
};
use std::{borrow::Cow, cell::RefCell, collections::BTreeMap, ops::Add, rc::Rc, sync::LazyLock};

use crate::common::INTERNAL_IO_FIELD_REF_TYPE_NAME_PREFIX;
use constraints::Constraint;
Expand Down Expand Up @@ -1018,12 +1011,8 @@ impl CharacterStringType {
.enumerate()
.collect()
});
static IA5_CHARSET: LazyLock<BTreeMap<usize, char>> = LazyLock::new(|| {
(0..128u32)
.filter_map(char::from_u32)
.enumerate()
.collect()
});
static IA5_CHARSET: LazyLock<BTreeMap<usize, char>> =
LazyLock::new(|| (0..128u32).filter_map(char::from_u32).enumerate().collect());
static ANY_CHARSET: LazyLock<BTreeMap<usize, char>> = LazyLock::new(|| {
(0..u16::MAX as u32)
.filter_map(char::from_u32)
Expand Down
Loading