clippy 🕶
73 clippy warning ahem
Checking POKEMON v0.1.0 (/home/darnuria/coursRustP8/2021_l2_rust/projets/orry_dossantos_pokemon/POKEMON)
warning: unnecessary parentheses around `if` condition
--> src/main.rs:158:11
|
158 | if(salameche_x < screen_width()/7.){
| ^ ^
|
= note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
|
158 - if(salameche_x < screen_width()/7.){
158 + if salameche_x < screen_width()/7. {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:162:11
|
162 | if(carapuce_x > screen_width()/1.7){
| ^ ^
|
help: remove these parentheses
|
162 - if(carapuce_x > screen_width()/1.7){
162 + if carapuce_x > screen_width()/1.7 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:247:11
|
247 | if(tailleTexte < 0.0){
| ^ ^
|
help: remove these parentheses
|
247 - if(tailleTexte < 0.0){
247 + if tailleTexte < 0.0 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:252:11
|
252 | if(tourDuJoueur){
| ^ ^
|
help: remove these parentheses
|
252 - if(tourDuJoueur){
252 + if tourDuJoueur {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:267:15
|
267 | if(faireApparaitreBoutonMenu){
| ^ ^
|
help: remove these parentheses
|
267 - if(faireApparaitreBoutonMenu){
267 + if faireApparaitreBoutonMenu {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:269:20
|
269 | ... if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 40. ), ("ATTAQUE".to_string())))
| ^ ^
|
help: remove these parentheses
|
269 - if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 40. ), ("ATTAQUE".to_string())))
269 + if root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 40. ), ("ATTAQUE".to_string()))
|
warning: unnecessary parentheses around method argument
--> src/main.rs:269:120
|
269 | ... if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 40. ), ("ATTAQUE".to_string())))
| ^ ^
|
help: remove these parentheses
|
269 - if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 40. ), ("ATTAQUE".to_string())))
269 + if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 40. ), "ATTAQUE".to_string()))
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:271:23
|
271 | if(boutonSalameche == 1){
| ^ ^
|
help: remove these parentheses
|
271 - if(boutonSalameche == 1){
271 + if boutonSalameche == 1 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:280:20
|
280 | ... if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40. ), ("SAC".to_string()))){
| ^ ^
|
help: remove these parentheses
|
280 - if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40. ), ("SAC".to_string()))){
280 + if root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40. ), ("SAC".to_string())) {
|
warning: unnecessary parentheses around method argument
--> src/main.rs:280:121
|
280 | ... if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40. ), ("SAC".to_string()))){
| ^ ^
|
help: remove these parentheses
|
280 - if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40. ), ("SAC".to_string()))){
280 + if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40. ), "SAC".to_string())){
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:285:20
|
285 | ... if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 150. ), ("POKEMON".to_string()))){
| ^ ^
|
help: remove these parentheses
|
285 - if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 150. ), ("POKEMON".to_string()))){
285 + if root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 150. ), ("POKEMON".to_string())) {
|
warning: unnecessary parentheses around method argument
--> src/main.rs:285:121
|
285 | ... if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 150. ), ("POKEMON".to_string()))){
| ^ ^
|
help: remove these parentheses
|
285 - if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 150. ), ("POKEMON".to_string()))){
285 + if (root_ui().button(Vec2::new(screen_width()/1.5 + 40. , screen_height() - tailleMenuHeight + 150. ), "POKEMON".to_string())){
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:290:20
|
290 | ...if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 150. ), ("FUITE".to_string())) || activerUneFois == false...
| ^ ^^
|
help: remove these parentheses
|
290 - if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 150. ), ("FUITE".to_string())) || activerUneFois == false ){
290 + if root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 150. ), ("FUITE".to_string())) || activerUneFois == false {
|
warning: unnecessary parentheses around method argument
--> src/main.rs:290:122
|
290 | ... if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 150. ), ("FUITE".to_string())) || ...
| ^ ^
|
help: remove these parentheses
|
290 - if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 150. ), ("FUITE".to_string())) || activerUneFois == false ){
290 + if (root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 150. ), "FUITE".to_string()) || activerUneFois == false ){
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:291:23
|
291 | if(activerUneFois){
| ^ ^
|
help: remove these parentheses
|
291 - if(activerUneFois){
291 + if activerUneFois {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:296:23
|
296 | if(tailleTexte >= 0.){
| ^ ^
|
help: remove these parentheses
|
296 - if(tailleTexte >= 0.){
296 + if tailleTexte >= 0. {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:304:16
|
304 | if (boutonSalameche == 1){ // Si on clique sur le bouton salamèche
| ^ ^
|
help: remove these parentheses
|
304 - if (boutonSalameche == 1){ // Si on clique sur le bouton salamèche
304 + if boutonSalameche == 1 { // Si on clique sur le bouton salamèche
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:317:19
|
317 | ... if(root_ui().button(Vec2::new(screen_width()/8. , screen_height() - tailleMenuHeight + 40.), a1.as_str().unwrap() ) ){ // Première ...
| ^ ^^
|
help: remove these parentheses
|
317 - if(root_ui().button(Vec2::new(screen_width()/8. , screen_height() - tailleMenuHeight + 40.), a1.as_str().unwrap() ) ){ // Première attaque
317 + if root_ui().button(Vec2::new(screen_width()/8. , screen_height() - tailleMenuHeight + 40.), a1.as_str().unwrap() ) { // Première attaque
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:333:19
|
333 | ... if(root_ui().button(Vec2::new(screen_width()/3. , screen_height() - tailleMenuHeight + 40.), a2.as_str().unwrap() ) ){ // Deuxième ...
| ^ ^^
|
help: remove these parentheses
|
333 - if(root_ui().button(Vec2::new(screen_width()/3. , screen_height() - tailleMenuHeight + 40.), a2.as_str().unwrap() ) ){ // Deuxième attaque
333 + if root_ui().button(Vec2::new(screen_width()/3. , screen_height() - tailleMenuHeight + 40.), a2.as_str().unwrap() ) { // Deuxième attaque
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:351:19
|
351 | if(root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40.), "RETOUR" ) ){
| ^ ^^
|
help: remove these parentheses
|
351 - if(root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40.), "RETOUR" ) ){
351 + if root_ui().button(Vec2::new(screen_width()/1.5 + 150. , screen_height() - tailleMenuHeight + 40.), "RETOUR" ) {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:360:19
|
360 | if(ptsVieCarapuce <= 0.){
| ^ ^
|
help: remove these parentheses
|
360 - if(ptsVieCarapuce <= 0.){
360 + if ptsVieCarapuce <= 0. {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:375:16
|
375 | else if(tourOrdinateur){
| ^ ^
|
help: remove these parentheses
|
375 - else if(tourOrdinateur){
375 + else if tourOrdinateur {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:377:15
|
377 | if( gen_range(1,3) == 2){
| ^^ ^
|
help: remove these parentheses
|
377 - if( gen_range(1,3) == 2){
377 + if gen_range(1,3) == 2 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:392:15
|
392 | if( gen_range(1,3) == 1 ){
| ^^ ^^
|
help: remove these parentheses
|
392 - if( gen_range(1,3) == 1 ){
392 + if gen_range(1,3) == 1 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:406:15
|
406 | if(ptsVieSalameche <= 0.){
| ^ ^
|
help: remove these parentheses
|
406 - if(ptsVieSalameche <= 0.){
406 + if ptsVieSalameche <= 0. {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:420:15
|
420 | if(faireAnimation){
| ^ ^
|
help: remove these parentheses
|
420 - if(faireAnimation){
420 + if faireAnimation {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:422:19
|
422 | if(animationDommageCarapuce){
| ^ ^
|
help: remove these parentheses
|
422 - if(animationDommageCarapuce){
422 + if animationDommageCarapuce {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:423:23
|
423 | if(compteurNbAnimation < 100){
| ^ ^
|
help: remove these parentheses
|
423 - if(compteurNbAnimation < 100){
423 + if compteurNbAnimation < 100 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:429:27
|
429 | if(compteurNbAnimation % 2 == 0){
| ^ ^
|
help: remove these parentheses
|
429 - if(compteurNbAnimation % 2 == 0){
429 + if compteurNbAnimation % 2 == 0 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:436:23
|
436 | if(compteurNbAnimation == 100){
| ^ ^
|
help: remove these parentheses
|
436 - if(compteurNbAnimation == 100){
436 + if compteurNbAnimation == 100 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:437:27
|
437 | if(ptsVieCarapuce <= 0.){
| ^ ^
|
help: remove these parentheses
|
437 - if(ptsVieCarapuce <= 0.){
437 + if ptsVieCarapuce <= 0. {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:440:31
|
440 | ... if(carapuce_y < screen_height() - tailleMenuHeight - 170.){
| ^ ^
|
help: remove these parentheses
|
440 - if(carapuce_y < screen_height() - tailleMenuHeight - 170.){
440 + if carapuce_y < screen_height() - tailleMenuHeight - 170. {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:466:19
|
466 | if(animationDommageSalameche){
| ^ ^
|
help: remove these parentheses
|
466 - if(animationDommageSalameche){
466 + if animationDommageSalameche {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:467:23
|
467 | if(compteurNbAnimation < 100){
| ^ ^
|
help: remove these parentheses
|
467 - if(compteurNbAnimation < 100){
467 + if compteurNbAnimation < 100 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:472:27
|
472 | if(compteurNbAnimation % 2 == 0){
| ^ ^
|
help: remove these parentheses
|
472 - if(compteurNbAnimation % 2 == 0){
472 + if compteurNbAnimation % 2 == 0 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:481:23
|
481 | if(compteurNbAnimation == 100){
| ^ ^
|
help: remove these parentheses
|
481 - if(compteurNbAnimation == 100){
481 + if compteurNbAnimation == 100 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:484:27
|
484 | if(ptsVieSalameche <= 0.){
| ^ ^
|
help: remove these parentheses
|
484 - if(ptsVieSalameche <= 0.){
484 + if ptsVieSalameche <= 0. {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:485:32
|
485 | ... if (salameche_y < screen_height()){
| ^ ^
|
help: remove these parentheses
|
485 - if (salameche_y < screen_height()){
485 + if salameche_y < screen_height() {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:513:15
|
513 | if(fin){
| ^ ^
|
help: remove these parentheses
|
513 - if(fin){
513 + if fin {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:514:19
|
514 | if(salamecheWin){
| ^ ^
|
help: remove these parentheses
|
514 - if(salamecheWin){
514 + if salamecheWin {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:517:24
|
517 | if (tailleTexte >= 0.0){
| ^ ^
|
help: remove these parentheses
|
517 - if (tailleTexte >= 0.0){
517 + if tailleTexte >= 0.0 {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:522:19
|
522 | if(carapuceWin){
| ^ ^
|
help: remove these parentheses
|
522 - if(carapuceWin){
522 + if carapuceWin {
|
warning: unnecessary parentheses around `if` condition
--> src/main.rs:524:24
|
524 | if (tailleTexte >= 0.0){
| ^ ^
|
help: remove these parentheses
|
524 - if (tailleTexte >= 0.0){
524 + if tailleTexte >= 0.0 {
|
warning: unreachable expression
--> src/main.rs:572:9
|
571 | return;
| ------ any code following this expression is unreachable
572 | next_frame().await
| ^^^^^^^^^^^^^^^^^^ unreachable expression
|
= note: `#[warn(unreachable_code)]` on by default
warning: value assigned to `tempptsVieCarapuce` is never read
--> src/main.rs:40:13
|
40 | let mut tempptsVieCarapuce = 0.;
| ^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_assignments)]` on by default
= help: maybe it is overwritten before being read?
warning: value assigned to `tempptsVieSalameche` is never read
--> src/main.rs:46:13
|
46 | let mut tempptsVieSalameche = 0.;
| ^^^^^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
warning: value assigned to `damage` is never read
--> src/main.rs:49:13
|
49 | let mut damage = 0.;
| ^^^^^^
|
= help: maybe it is overwritten before being read?
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:69:13
|
69 | 241 as f32 / 255., // r
| ^^^^^^^^^^ help: try: `241_f32`
|
= note: `#[warn(clippy::unnecessary_cast)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:70:13
|
70 | 239 as f32 / 255., // g
| ^^^^^^^^^^ help: try: `239_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:71:13
|
71 | 240 as f32 / 255., // b
| ^^^^^^^^^^ help: try: `240_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:72:13
|
72 | 255 as f32 / 255., // a
| ^^^^^^^^^^ help: try: `255_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:80:13
|
80 | 204 as f32 / 255., // r
| ^^^^^^^^^^ help: try: `204_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:81:13
|
81 | 168 as f32 / 255., // g
| ^^^^^^^^^^ help: try: `168_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:82:13
|
82 | 30 as f32 / 255., // b
| ^^^^^^^^^ help: try: `30_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:83:13
|
83 | 255 as f32 / 255., // a
| ^^^^^^^^^^ help: try: `255_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:87:13
|
87 | 13 as f32 / 255., // r
| ^^^^^^^^^ help: try: `13_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:88:13
|
88 | 77 as f32 / 255., // g
| ^^^^^^^^^ help: try: `77_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:89:13
|
89 | 105 as f32 / 255., // b
| ^^^^^^^^^^ help: try: `105_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:90:13
|
90 | 255 as f32 / 255., // a
| ^^^^^^^^^^ help: try: `255_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:94:13
|
94 | 104 as f32 / 255., // r
| ^^^^^^^^^^ help: try: `104_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:95:13
|
95 | 101 as f32 / 255., // g
| ^^^^^^^^^^ help: try: `101_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:96:13
|
96 | 188 as f32 / 255., // b
| ^^^^^^^^^^ help: try: `188_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:97:13
|
97 | 255 as f32 / 255., // a
| ^^^^^^^^^^ help: try: `255_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:101:13
|
101 | 91 as f32 / 255., // r
| ^^^^^^^^^ help: try: `91_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:102:13
|
102 | 74 as f32 / 255., // g
| ^^^^^^^^^ help: try: `74_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:103:13
|
103 | 108 as f32 / 255., // b
| ^^^^^^^^^^ help: try: `108_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:104:13
|
104 | 255 as f32 / 255., // a
| ^^^^^^^^^^ help: try: `255_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:108:13
|
108 | 247 as f32 / 255., // r
| ^^^^^^^^^^ help: try: `247_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:109:13
|
109 | 248 as f32 / 255., // g
| ^^^^^^^^^^ help: try: `248_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:110:13
|
110 | 206 as f32 / 255., // b
| ^^^^^^^^^^ help: try: `206_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: casting integer literal to `f32` is unnecessary
--> src/main.rs:111:13
|
111 | 255 as f32 / 255., // a
| ^^^^^^^^^^ help: try: `255_f32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
warning: unnecessary use of `to_string`
--> src/main.rs:232:61
|
232 | ... draw_text(&((ptsVieSalameche as u32).to_string() + &"/".to_string() + &ptsVieSalamecheTotal.to_string()), screen_width()/1.7 + 150....
| ^^^^^^^^^^^^^^^^ help: use: `"/"`
|
= note: `#[warn(clippy::unnecessary_to_owned)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
warning: equality checks against false can be replaced by a negation
--> src/main.rs:290:148
|
290 | ...), ("FUITE".to_string())) || activerUneFois == false ){
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!activerUneFois`
|
= note: `#[warn(clippy::bool_comparison)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
error: this loop never actually loops
--> src/main.rs:569:5
|
569 | / loop {
570 | | clear_background(BLACK);
571 | | return;
572 | | next_frame().await
573 | | }
| |_____^
|
= note: `#[deny(clippy::never_loop)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
warning: `POKEMON` (bin "POKEMON") generated 73 warnings
error: could not compile `POKEMON` due to previous error; 73 warnings emitted