command_sequence : autorisation temporaire de code mort pour la fonction add encore inutilisée

This commit is contained in:
Ahurac 2024-04-11 21:36:37 +02:00
parent 705e11fcab
commit 8194f61b2c

View file

@ -14,6 +14,7 @@ impl CommandSequence {
} }
} }
#[allow(dead_code)]
pub fn add(&mut self, command: Box<dyn Command>) { pub fn add(&mut self, command: Box<dyn Command>) {
if self.next_command.is_none() { if self.next_command.is_none() {
self.next_command = Some(Box::new(Self::new(command))); self.next_command = Some(Box::new(Self::new(command)));