This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
Add more details #72
Annotations
42 warnings
useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`:
src/bin/api.rs#L1132
warning: useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`
--> src/bin/api.rs:1132:18
|
1132 | resultados = resultados.into_iter().rev().into_iter().collect::<Vec<_>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `resultados.into_iter().rev()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless use of `format!`:
src/bin/api.rs#L1114
warning: useless use of `format!`
--> src/bin/api.rs:1114:62
|
1114 | let mut resultados: Vec<(String, i64)> = sqlx::query_as(&format!(
| ______________________________________________________________^
1115 | | "SELECT delito, fre
1116 | | FROM (SELECT id_delito,
1117 | | COUNT(*) AS fre
... |
1123 | | ",
1124 | | ))
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
help: consider using `.to_string()`
|
1114 ~ let mut resultados: Vec<(String, i64)> = sqlx::query_as(&"SELECT delito, fre
1115 + FROM (SELECT id_delito,
1116 + COUNT(*) AS fre
1117 + FROM delitos
1118 + WHERE id_anio_hecho BETWEEN ? AND ?
1119 + AND id_categoria != 1
1120 + GROUP BY id_delito) as R
1121 + JOIN delito USING(id_delito);
1122 ~ ".to_string())
|
|
useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`:
src/bin/api.rs#L1038
warning: useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`
--> src/bin/api.rs:1038:18
|
1038 | resultados = resultados.into_iter().rev().into_iter().collect::<Vec<_>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `resultados.into_iter().rev()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless use of `format!`:
src/bin/api.rs#L1020
warning: useless use of `format!`
--> src/bin/api.rs:1020:62
|
1020 | let mut resultados: Vec<(String, i64)> = sqlx::query_as(&format!(
| ______________________________________________________________^
1021 | | "SELECT delito, fre
1022 | | FROM (SELECT id_delito,
1023 | | COUNT(*) AS fre
... |
1029 | | ",
1030 | | ))
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
help: consider using `.to_string()`
|
1020 ~ let mut resultados: Vec<(String, i64)> = sqlx::query_as(&"SELECT delito, fre
1021 + FROM (SELECT id_delito,
1022 + COUNT(*) AS fre
1023 + FROM delitos
1024 + WHERE id_anio_hecho BETWEEN ? AND ?
1025 + AND id_categoria = 1
1026 + GROUP BY id_delito) as R
1027 + JOIN delito USING(id_delito);
1028 ~ ".to_string())
|
|
useless conversion to the same type: `std::iter::Take<std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>>`:
src/bin/api.rs#L993
warning: useless conversion to the same type: `std::iter::Take<std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>>`
--> src/bin/api.rs:993:18
|
993 | resultados = resultados
| __________________^
994 | | .into_iter()
995 | | .rev()
996 | | .take(15)
997 | | .into_iter()
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
help: consider removing `.into_iter()`
|
993 ~ resultados = resultados
994 + .into_iter()
995 + .rev()
996 + .take(15)
|
|
useless use of `format!`:
src/bin/api.rs#L974
warning: useless use of `format!`
--> src/bin/api.rs:974:13
|
974 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless conversion to the same type: `std::iter::Take<std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>>`:
src/bin/api.rs#L936
warning: useless conversion to the same type: `std::iter::Take<std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>>`
--> src/bin/api.rs:936:18
|
936 | resultados = resultados
| __________________^
937 | | .into_iter()
938 | | .rev()
939 | | .take(15)
940 | | .into_iter()
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
help: consider removing `.into_iter()`
|
936 ~ resultados = resultados
937 + .into_iter()
938 + .rev()
939 + .take(15)
|
|
useless use of `format!`:
src/bin/api.rs#L917
warning: useless use of `format!`
--> src/bin/api.rs:917:13
|
917 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`:
src/bin/api.rs#L881
warning: useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`
--> src/bin/api.rs:881:18
|
881 | resultados = resultados.into_iter().rev().into_iter().collect::<Vec<_>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `resultados.into_iter().rev()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
useless use of `format!`:
src/bin/api.rs#L862
warning: useless use of `format!`
--> src/bin/api.rs:862:13
|
862 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L791
warning: useless use of `format!`
--> src/bin/api.rs:791:13
|
791 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L767
warning: useless use of `format!`
--> src/bin/api.rs:767:13
|
767 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L726
warning: useless use of `format!`
--> src/bin/api.rs:726:13
|
726 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L700
warning: useless use of `format!`
--> src/bin/api.rs:700:13
|
700 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L651
warning: useless use of `format!`
--> src/bin/api.rs:651:13
|
651 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L618
warning: useless use of `format!`
--> src/bin/api.rs:618:13
|
618 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L564
warning: useless use of `format!`
--> src/bin/api.rs:564:13
|
564 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L537
warning: useless use of `format!`
--> src/bin/api.rs:537:13
|
537 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L439
warning: useless use of `format!`
--> src/bin/api.rs:439:13
|
439 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L378
warning: useless use of `format!`
--> src/bin/api.rs:378:13
|
378 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L351
warning: useless use of `format!`
--> src/bin/api.rs:351:13
|
351 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= 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
|
useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`:
src/bin/api.rs#L1132
warning: useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`
--> src/bin/api.rs:1132:18
|
1132 | resultados = resultados.into_iter().rev().into_iter().collect::<Vec<_>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `resultados.into_iter().rev()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless use of `format!`:
src/bin/api.rs#L1114
warning: useless use of `format!`
--> src/bin/api.rs:1114:62
|
1114 | let mut resultados: Vec<(String, i64)> = sqlx::query_as(&format!(
| ______________________________________________________________^
1115 | | "SELECT delito, fre
1116 | | FROM (SELECT id_delito,
1117 | | COUNT(*) AS fre
... |
1123 | | ",
1124 | | ))
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
help: consider using `.to_string()`
|
1114 ~ let mut resultados: Vec<(String, i64)> = sqlx::query_as(&"SELECT delito, fre
1115 + FROM (SELECT id_delito,
1116 + COUNT(*) AS fre
1117 + FROM delitos
1118 + WHERE id_anio_hecho BETWEEN ? AND ?
1119 + AND id_categoria != 1
1120 + GROUP BY id_delito) as R
1121 + JOIN delito USING(id_delito);
1122 ~ ".to_string())
|
|
useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`:
src/bin/api.rs#L1038
warning: useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`
--> src/bin/api.rs:1038:18
|
1038 | resultados = resultados.into_iter().rev().into_iter().collect::<Vec<_>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `resultados.into_iter().rev()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless use of `format!`:
src/bin/api.rs#L1020
warning: useless use of `format!`
--> src/bin/api.rs:1020:62
|
1020 | let mut resultados: Vec<(String, i64)> = sqlx::query_as(&format!(
| ______________________________________________________________^
1021 | | "SELECT delito, fre
1022 | | FROM (SELECT id_delito,
1023 | | COUNT(*) AS fre
... |
1029 | | ",
1030 | | ))
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
help: consider using `.to_string()`
|
1020 ~ let mut resultados: Vec<(String, i64)> = sqlx::query_as(&"SELECT delito, fre
1021 + FROM (SELECT id_delito,
1022 + COUNT(*) AS fre
1023 + FROM delitos
1024 + WHERE id_anio_hecho BETWEEN ? AND ?
1025 + AND id_categoria = 1
1026 + GROUP BY id_delito) as R
1027 + JOIN delito USING(id_delito);
1028 ~ ".to_string())
|
|
useless conversion to the same type: `std::iter::Take<std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>>`:
src/bin/api.rs#L993
warning: useless conversion to the same type: `std::iter::Take<std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>>`
--> src/bin/api.rs:993:18
|
993 | resultados = resultados
| __________________^
994 | | .into_iter()
995 | | .rev()
996 | | .take(15)
997 | | .into_iter()
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
help: consider removing `.into_iter()`
|
993 ~ resultados = resultados
994 + .into_iter()
995 + .rev()
996 + .take(15)
|
|
useless use of `format!`:
src/bin/api.rs#L974
warning: useless use of `format!`
--> src/bin/api.rs:974:13
|
974 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless conversion to the same type: `std::iter::Take<std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>>`:
src/bin/api.rs#L936
warning: useless conversion to the same type: `std::iter::Take<std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>>`
--> src/bin/api.rs:936:18
|
936 | resultados = resultados
| __________________^
937 | | .into_iter()
938 | | .rev()
939 | | .take(15)
940 | | .into_iter()
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
help: consider removing `.into_iter()`
|
936 ~ resultados = resultados
937 + .into_iter()
938 + .rev()
939 + .take(15)
|
|
useless use of `format!`:
src/bin/api.rs#L917
warning: useless use of `format!`
--> src/bin/api.rs:917:13
|
917 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`:
src/bin/api.rs#L881
warning: useless conversion to the same type: `std::iter::Rev<std::vec::IntoIter<(std::string::String, i64)>>`
--> src/bin/api.rs:881:18
|
881 | resultados = resultados.into_iter().rev().into_iter().collect::<Vec<_>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `resultados.into_iter().rev()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
useless use of `format!`:
src/bin/api.rs#L862
warning: useless use of `format!`
--> src/bin/api.rs:862:13
|
862 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L791
warning: useless use of `format!`
--> src/bin/api.rs:791:13
|
791 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L767
warning: useless use of `format!`
--> src/bin/api.rs:767:13
|
767 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L726
warning: useless use of `format!`
--> src/bin/api.rs:726:13
|
726 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L700
warning: useless use of `format!`
--> src/bin/api.rs:700:13
|
700 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L651
warning: useless use of `format!`
--> src/bin/api.rs:651:13
|
651 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L618
warning: useless use of `format!`
--> src/bin/api.rs:618:13
|
618 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L564
warning: useless use of `format!`
--> src/bin/api.rs:564:13
|
564 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L537
warning: useless use of `format!`
--> src/bin/api.rs:537:13
|
537 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L439
warning: useless use of `format!`
--> src/bin/api.rs:439:13
|
439 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L378
warning: useless use of `format!`
--> src/bin/api.rs:378:13
|
378 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
useless use of `format!`:
src/bin/api.rs#L351
warning: useless use of `format!`
--> src/bin/api.rs:351:13
|
351 | format!("")
| ^^^^^^^^^^^ help: consider using `String::new()`: `String::new()`
|
= 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
|