mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
make stringified names mirror variant names
This commit is contained in:
parent
38382128ac
commit
784b86a1f6
1 changed files with 4 additions and 4 deletions
|
|
@ -57,10 +57,10 @@ impl FoundIn {
|
|||
/// Returns a stringified representation of the current value
|
||||
fn as_str(&self) -> &'static str {
|
||||
match self {
|
||||
FoundIn::Cache => "hit",
|
||||
FoundIn::Database => "miss-database",
|
||||
FoundIn::Remote => "miss-remote",
|
||||
FoundIn::Nothing => "not-found",
|
||||
FoundIn::Cache => "Cache",
|
||||
FoundIn::Database => "Database",
|
||||
FoundIn::Remote => "Remote",
|
||||
FoundIn::Nothing => "Nothing",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue