Removed warnings
All checks were successful
Rust / build_and_test (push) Successful in 23s

This commit is contained in:
Lukas Wölfer
2025-07-27 18:20:18 +02:00
parent 09ea73a65a
commit a52acc6daf
4 changed files with 7 additions and 9 deletions

View File

@@ -58,7 +58,6 @@ impl Card {
result.field[current_field] = field; result.field[current_field] = field;
current_field += 1; current_field += 1;
} }
for c in text.chars() {}
result result
} }
} }

View File

@@ -1,6 +1,4 @@
#![allow(dead_code)] #![allow(dead_code)]
use std::default;
use crate::objective::Objective; use crate::objective::Objective;
mod card; mod card;

View File

@@ -100,8 +100,6 @@ impl Objective {
0 0
} }
} }
Objective::Neighbors(items) => todo!(),
Objective::DistantNeighbors(items) => todo!(),
Objective::NInARow(icon, count) => { Objective::NInARow(icon, count) => {
let mut bits = IconBitfield::from_painting(painting).get_icon_bits(*icon); let mut bits = IconBitfield::from_painting(painting).get_icon_bits(*icon);
let bitmask = (1 << count) - 1; let bitmask = (1 << count) - 1;
@@ -115,7 +113,10 @@ impl Objective {
} }
} }
res_count res_count
// Objective::Neighbors(items) => todo!(),
// Objective::DistantNeighbors(items) => todo!(),
} }
_ => todo!(),
} }
} }
} }

View File

@@ -1,5 +1,5 @@
use crate::{CriteriaCard, icon_bitfield::IconBitfield, objective::Objective}; // use crate::{CriteriaCard, icon_bitfield::IconBitfield};
fn draw_painting(cards: &[IconBitfield], obj: Vec<(&CriteriaCard, u8)>) -> [usize; 3] { // fn draw_painting(cards: &[IconBitfield], obj: Vec<(&CriteriaCard, u8)>) -> [usize; 3] {
todo!() // todo!()
} // }