Skip to content

Commit bc783f8

Browse files
committed
Fix clippy and vec
1 parent 5f43e4f commit bc783f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc_lib/src/functions/range.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl Function for Range {
1616
FunctionMetadata {
1717
name: "range".to_string(),
1818
description: t!("functions.range.description").to_string(),
19-
category: FunctionCategory::Array,
19+
category: vec![FunctionCategory::Array],
2020
min_args: 2,
2121
max_args: 2,
2222
accepted_arg_ordered_types: vec![
@@ -48,7 +48,7 @@ impl Function for Range {
4848

4949
// should not exceed
5050
if let Some(sum) = start_index.checked_add(count) {
51-
if sum > 2147483647 {
51+
if sum > 2_147_483_647 {
5252
return Err(DscError::FunctionArg("range".to_string(), t!("functions.range.sumTooLarge").to_string()));
5353
}
5454
} else {

0 commit comments

Comments
 (0)