basic.rs: using expect tests

This commit is contained in:
kevin zhao
2025-11-11 20:17:52 -05:00
parent 2217cb05ee
commit 7681b325fe
6 changed files with 178 additions and 104 deletions

View File

@@ -25,3 +25,13 @@ impl Decision {
}
}
}
impl std::fmt::Display for Decision {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Allow => f.write_str("allow"),
Self::Prompt => f.write_str("prompt"),
Self::Forbidden => f.write_str("forbidden"),
}
}
}