generated from GarandPLG/rust-flake-template
Remove unused lifetimes from app structs
This commit is contained in:
1 parent
19f4417172
commit
d87316e4fe
7 files changed
+22
-21
No files matched your search
@@ -2,18 +2,18 @@ use crate::app::states::skirmish_states::units::Units;
|
||||
use std::collections::VecDeque;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct MarkedCells<'a> {
|
||||
pub struct MarkedCells {
|
||||
pub marking_cells: bool,
|
||||
pub marked_cells: VecDeque<(usize, usize)>,
|
||||
pub selected_unit: &'a Option<Units>,
|
||||
pub selected_unit: Option<Units>,
|
||||
}
|
||||
|
||||
impl MarkedCells<'_> {
|
||||
impl MarkedCells {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
marking_cells: false,
|
||||
marked_cells: VecDeque::new(),
|
||||
selected_unit: &None,
|
||||
selected_unit: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user