chore: clippy fixes
This commit is contained in:
parent
3582c5569d
commit
ac0c73a56a
|
@ -1094,7 +1094,7 @@ fn suggest_neighbor<'a>(
|
|||
fn suggest_pattern(
|
||||
expected: usize,
|
||||
name: &str,
|
||||
given: &Vec<CallArg<UntypedPattern>>,
|
||||
given: &[CallArg<UntypedPattern>],
|
||||
module: &Option<String>,
|
||||
is_record: bool,
|
||||
) -> Option<String> {
|
||||
|
|
|
@ -168,7 +168,7 @@ impl Reference {
|
|||
}
|
||||
}
|
||||
|
||||
fn from_types(args: &Vec<Rc<Type>>, type_parameters: &HashMap<u64, Rc<Type>>) -> Self {
|
||||
fn from_types(args: &[Rc<Type>], type_parameters: &HashMap<u64, Rc<Type>>) -> Self {
|
||||
if args.is_empty() {
|
||||
Reference::new("")
|
||||
} else {
|
||||
|
|
|
@ -334,7 +334,7 @@ fn fmt_test(eval_info: &EvalInfo, max_mem: usize, max_cpu: usize, styled: bool)
|
|||
}
|
||||
}
|
||||
|
||||
fn fmt_test_summary(tests: &Vec<&EvalInfo>, styled: bool) -> String {
|
||||
fn fmt_test_summary(tests: &[&EvalInfo], styled: bool) -> String {
|
||||
let (n_passed, n_failed) = tests
|
||||
.iter()
|
||||
.fold((0, 0), |(n_passed, n_failed), test_info| {
|
||||
|
|
Loading…
Reference in New Issue