Skip to content

Commit

Permalink
rust 1.77 new clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rooooooooob committed Jan 30, 2024
1 parent afaa56a commit ffe55b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn rule_is_scope_marker(cddl_rule: &cddl::ast::Rule) -> Option<ModuleScope>
if value.type_choices.len() == 1 && ident.starts_with(SCOPE_MARKER) {
match &value.type_choices[0].type1.type2 {
Type2::TextValue { value, .. } => Some(ModuleScope::new(
value.to_string().split("::").map(String::from).collect(),
value.as_ref().split("::").map(String::from).collect(),
)),
_ => None,
}
Expand Down

0 comments on commit ffe55b5

Please sign in to comment.