chore: Bump version #98
Annotations
19 warnings
unneeded `return` statement:
src/lib.rs#L236
warning: unneeded `return` statement
--> src/lib.rs:236:5
|
236 | return format!("{}.{}.{}.{}", a, b, c, d);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
236 - return format!("{}.{}.{}.{}", a, b, c, d);
236 + format!("{}.{}.{}.{}", a, b, c, d)
|
|
unneeded `return` statement:
src/lib.rs#L200
warning: unneeded `return` statement
--> src/lib.rs:200:5
|
200 | return format!("{}.{}.{}.{}", a, b, c, d);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
200 - return format!("{}.{}.{}.{}", a, b, c, d);
200 + format!("{}.{}.{}.{}", a, b, c, d)
|
|
length comparison to zero:
src/lib.rs#L166
warning: length comparison to zero
--> src/lib.rs:166:8
|
166 | if args.len() == 0 {
| ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `args.is_empty()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
= note: `#[warn(clippy::len_zero)]` on by default
|
unneeded `return` statement:
src/lib.rs#L182
warning: unneeded `return` statement
--> src/lib.rs:182:5
|
182 | return rand_number.to_string();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
182 - return rand_number.to_string();
182 + rand_number.to_string()
|
|
useless use of `format!`:
src/lib.rs#L147
warning: useless use of `format!`
--> src/lib.rs:147:12
|
147 | return format!("{}", args[index]); // String::from(args[index]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `args[index].to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `vec!`:
src/lib.rs#L140
warning: useless use of `vec!`
--> src/lib.rs:140:16
|
140 | let args = vec![
| ________________^
141 | | "GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH",
142 | | ];
| |_____^ help: you can use an array directly: `["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
|
unneeded `return` statement:
src/lib.rs#L147
warning: unneeded `return` statement
--> src/lib.rs:147:5
|
147 | return format!("{}", args[index]); // String::from(args[index]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
147 - return format!("{}", args[index]); // String::from(args[index]);
147 + format!("{}", args[index])// String::from(args[index]);
|
|
useless use of `format!`:
src/lib.rs#L118
warning: useless use of `format!`
--> src/lib.rs:118:12
|
118 | return format!("{}", args[index]); //String::from(args[index]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `args[index].to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|
unneeded `return` statement:
src/lib.rs#L118
warning: unneeded `return` statement
--> src/lib.rs:118:5
|
118 | return format!("{}", args[index]); //String::from(args[index]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
118 - return format!("{}", args[index]); //String::from(args[index]);
118 + format!("{}", args[index])//String::from(args[index]);
|
|
unneeded `return` statement:
src/lib.rs#L99
warning: unneeded `return` statement
--> src/lib.rs:99:5
|
99 | return format!("{}@{}", &user, &email);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
99 - return format!("{}@{}", &user, &email);
99 + format!("{}@{}", &user, &email)
|
|
unneeded `return` statement:
src/lib.rs#L78
warning: unneeded `return` statement
--> src/lib.rs:78:5
|
78 | return format!("{}.{}", &domain, &tld);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
78 - return format!("{}.{}", &domain, &tld);
78 + format!("{}.{}", &domain, &tld)
|
|
unneeded `return` statement:
src/lib.rs#L52
warning: unneeded `return` statement
--> src/lib.rs:52:5
|
52 | return password;
| ^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
52 - return password;
52 + password
|
|
unneeded `return` statement:
src/lib.rs#L38
warning: unneeded `return` statement
--> src/lib.rs:38:5
|
38 | return password;
| ^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
38 - return password;
38 + password
|
|
unneeded `return` statement:
src/lib.rs#L24
warning: unneeded `return` statement
--> src/lib.rs:24:5
|
24 | return user;
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
24 - return user;
24 + user
|
|
single-character string constant used as pattern:
src/lib.rs#L8
warning: single-character string constant used as pattern
--> src/lib.rs:8:39
|
8 | let args: Vec<&str> = input.split(",").collect();
| ^^^ help: try using a `char` instead: `','`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
= note: `#[warn(clippy::single_char_pattern)]` on by default
|
unneeded `return` statement:
src/lib.rs#L9
warning: unneeded `return` statement
--> src/lib.rs:9:5
|
9 | return args;
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
9 - return args;
9 + args
|
|
unneeded `return` statement:
src/data.rs#L80
warning: unneeded `return` statement
--> src/data.rs:80:5
|
80 | return gen_switch(name);
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
80 - return gen_switch(name);
80 + gen_switch(name)
|
|
unneeded `return` statement:
src/data.rs#L75
warning: unneeded `return` statement
--> src/data.rs:75:5
|
75 | return data[index].to_string();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
75 - return data[index].to_string();
75 + data[index].to_string()
|
|
unneeded `return` statement:
src/data.rs#L37
warning: unneeded `return` statement
--> src/data.rs:37:5
|
37 | return Ok(dataset);
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
37 - return Ok(dataset);
37 + Ok(dataset)
|
|