Fixed typos and updated to matches! where applicable

This commit is contained in:
boolean_coercion 2021-02-12 11:53:52 +02:00
parent 9194c11d69
commit 642efabfbb
2 changed files with 7 additions and 15 deletions

View file

@ -1,4 +1,4 @@
error: This call to `from_str_radix` can be shortened to a call to str::parse
error: this call to `from_str_radix` can be replaced with a call to `str::parse`
--> $DIR/from_str_radix_10.rs:17:5
|
LL | u32::from_str_radix("30", 10)?;
@ -6,25 +6,25 @@ LL | u32::from_str_radix("30", 10)?;
|
= note: `-D clippy::from-str-radix-10` implied by `-D warnings`
error: This call to `from_str_radix` can be shortened to a call to str::parse
error: this call to `from_str_radix` can be replaced with a call to `str::parse`
--> $DIR/from_str_radix_10.rs:18:5
|
LL | i64::from_str_radix("24", 10)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `("24").parse()`
error: This call to `from_str_radix` can be shortened to a call to str::parse
error: this call to `from_str_radix` can be replaced with a call to `str::parse`
--> $DIR/from_str_radix_10.rs:19:5
|
LL | isize::from_str_radix("100", 10)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `("100").parse()`
error: This call to `from_str_radix` can be shortened to a call to str::parse
error: this call to `from_str_radix` can be replaced with a call to `str::parse`
--> $DIR/from_str_radix_10.rs:20:5
|
LL | u8::from_str_radix("7", 10)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `("7").parse()`
error: This call to `from_str_radix` can be shortened to a call to str::parse
error: this call to `from_str_radix` can be replaced with a call to `str::parse`
--> $DIR/from_str_radix_10.rs:23:5
|
LL | i32::from_str_radix(string, 10)?;