Skip to content

Commit aa262d8

Browse files
authored
Merge pull request #7746 from nyurik/commas
chore: remove trailing commas
2 parents e4c7bd0 + e5ffb5e commit aa262d8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/uu/dd/src/blocks.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ mod tests {
133133
let buf = [0u8, 1u8, 2u8, 3u8];
134134
let res = block(&buf, 4, false, &mut rs);
135135

136-
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8],]);
136+
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8]]);
137137
}
138138

139139
#[test]
@@ -144,7 +144,7 @@ mod tests {
144144

145145
assert_eq!(
146146
res,
147-
vec![vec![0u8, 1u8, 2u8, 3u8, SPACE, SPACE, SPACE, SPACE],]
147+
vec![vec![0u8, 1u8, 2u8, 3u8, SPACE, SPACE, SPACE, SPACE]]
148148
);
149149
}
150150

@@ -155,7 +155,7 @@ mod tests {
155155
let res = block(&buf, 4, false, &mut rs);
156156

157157
// Commented section(s) should be truncated and appear for reference only.
158-
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8 /*, 4u8*/],]);
158+
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8 /*, 4u8*/]]);
159159
assert_eq!(rs.records_truncated, 1);
160160
}
161161

@@ -238,7 +238,7 @@ mod tests {
238238
let buf = [0u8, 1u8, 2u8, 3u8, NEWLINE];
239239
let res = block(&buf, 4, false, &mut rs);
240240

241-
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8],]);
241+
assert_eq!(res, vec![vec![0u8, 1u8, 2u8, 3u8]]);
242242
}
243243

244244
#[test]
@@ -258,7 +258,7 @@ mod tests {
258258

259259
assert_eq!(
260260
res,
261-
vec![vec![0u8, 1u8, 2u8, SPACE], vec![SPACE, SPACE, SPACE, SPACE],]
261+
vec![vec![0u8, 1u8, 2u8, SPACE], vec![SPACE, SPACE, SPACE, SPACE]]
262262
);
263263
}
264264

@@ -270,7 +270,7 @@ mod tests {
270270

271271
assert_eq!(
272272
res,
273-
vec![vec![SPACE, SPACE, SPACE, SPACE], vec![0u8, 1u8, 2u8, 3u8],]
273+
vec![vec![SPACE, SPACE, SPACE, SPACE], vec![0u8, 1u8, 2u8, 3u8]]
274274
);
275275
}
276276

src/uu/sort/src/sort.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,15 +1951,15 @@ mod tests {
19511951
#[test]
19521952
fn test_tokenize_fields() {
19531953
let line = "foo bar b x";
1954-
assert_eq!(tokenize_helper(line, None), vec![0..3, 3..7, 7..9, 9..14,]);
1954+
assert_eq!(tokenize_helper(line, None), vec![0..3, 3..7, 7..9, 9..14]);
19551955
}
19561956

19571957
#[test]
19581958
fn test_tokenize_fields_leading_whitespace() {
19591959
let line = " foo bar b x";
19601960
assert_eq!(
19611961
tokenize_helper(line, None),
1962-
vec![0..7, 7..11, 11..13, 13..18,]
1962+
vec![0..7, 7..11, 11..13, 13..18]
19631963
);
19641964
}
19651965

@@ -1968,7 +1968,7 @@ mod tests {
19681968
let line = "aaa foo bar b x";
19691969
assert_eq!(
19701970
tokenize_helper(line, Some('a')),
1971-
vec![0..0, 1..1, 2..2, 3..9, 10..18,]
1971+
vec![0..0, 1..1, 2..2, 3..9, 10..18]
19721972
);
19731973
}
19741974

0 commit comments

Comments
 (0)