Skip to main content

subcog/cli/
recall.rs

1//! Recall CLI command.
2
3/// Recall command handler.
4pub struct RecallCommand;
5
6impl RecallCommand {
7    /// Creates a new recall command.
8    #[must_use]
9    pub const fn new() -> Self {
10        Self
11    }
12}
13
14impl Default for RecallCommand {
15    fn default() -> Self {
16        Self::new()
17    }
18}
19
20#[cfg(test)]
21mod tests {
22    use super::*;
23
24    #[test]
25    fn test_recall_command_new() {
26        let _cmd = RecallCommand::new();
27    }
28
29    #[test]
30    #[allow(clippy::default_constructed_unit_structs)]
31    fn test_recall_command_default() {
32        let _cmd = RecallCommand::default();
33    }
34}