Skip to content

Commit c8d0da4

Browse files
committed
Remove to_string methods when they are redundantly used in a format macro
1 parent 44aa4cc commit c8d0da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simx/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ fn get_schedulings(method: &ImplItemMethod) -> Option<Vec<EventEdge>> {
124124
parameters: match_parameters,
125125
condition: Some(format![
126126
"{} = {}",
127-
quote!(#match_expr).to_string(),
128-
quote!(#match_case).to_string(),
127+
quote!(#match_expr),
128+
quote!(#match_case),
129129
]),
130130
delay: None,
131131
})

0 commit comments

Comments
 (0)