Skip to content

Commit fb412ac

Browse files
hirataraljedrz
andauthored
refactor: use slice for function parameter
Accepting a slice is more flexible and idiomatic than a vector reference (@ljedrz) Co-authored-by: ljedrz <3750347+ljedrz@users.noreply.github.com>
1 parent afcc282 commit fb412ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ fn base26_encode(mut n: u32) -> String {
690690

691691
fn show_precedence_cla(
692692
ctx: &Context,
693-
binder_names: &Vec<String>,
693+
binder_names: &[String],
694694
term: &Term,
695695
context_precedence: usize,
696696
depth: u32,

0 commit comments

Comments
 (0)