Skip to content

Commit

Permalink
Fix a couple warnings & fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shahn committed Sep 11, 2024
1 parent 1b5fe19 commit 1796499
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions rasn-compiler-tests/tests/parse_test.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use rasn_compiler::{
prelude::RasnBackend,
Compiler,
};
use rasn_compiler::{prelude::RasnBackend, Compiler};

#[test]
#[ignore]
Expand Down
3 changes: 2 additions & 1 deletion rasn-compiler/src/generator/typescript/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ impl Typescript {
"#,
to_jer_identifier(&en.name),
en.name,
en.description.map_or(String::default(), |d| format!("//{}", d)),
en.description
.map_or(String::default(), |d| format!("//{}", d)),
));
acc
}),
Expand Down
5 changes: 1 addition & 4 deletions rasn-compiler/src/validator/linking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ mod information_object;
mod types;
mod utils;

use std::{
borrow::BorrowMut,
collections::BTreeMap,
};
use std::{borrow::BorrowMut, collections::BTreeMap};

use crate::{
common::INTERNAL_NESTED_TYPE_NAME_PREFIX,
Expand Down
1 change: 0 additions & 1 deletion rasn-compiler/src/validator/linking/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::{
lexer::asn1_value,
};


pub(crate) fn find_tld_or_enum_value_by_name(
type_name: &String,
name: &String,
Expand Down

0 comments on commit 1796499

Please sign in to comment.