make stringified names mirror variant names

This commit is contained in:
Charles Hall 2024-06-04 12:25:37 -07:00
parent deb09d8c3c
commit a8a7cece1d
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -57,10 +57,10 @@ impl FoundIn {
/// Returns a stringified representation of the current value /// Returns a stringified representation of the current value
fn as_str(&self) -> &'static str { fn as_str(&self) -> &'static str {
match self { match self {
FoundIn::Cache => "hit", FoundIn::Cache => "Cache",
FoundIn::Database => "miss-database", FoundIn::Database => "Database",
FoundIn::Remote => "miss-remote", FoundIn::Remote => "Remote",
FoundIn::Nothing => "not-found", FoundIn::Nothing => "Nothing",
} }
} }