Skip to content

Commit 85d185f

Browse files
jo-soheftig
authored andcommitted
Use character for split()
`cargo clippy` suggested to use a character instead of a string with a single character. See: <https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern>
1 parent 846ec8f commit 85d185f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl FromStr for LevelSizes {
8181
fn from_str(s: &str) -> Result<Self, Self::Err> {
8282
let mut sizes = Vec::new();
8383

84-
for size_str in s.split(",") {
84+
for size_str in s.split(',') {
8585
let size: usize = size_str
8686
.parse()
8787
.map_err(|_| "Not a comma separated list of numbers")?;

0 commit comments

Comments
 (0)