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
deb09d8c3c
commit
a8a7cece1d
1 changed files with 4 additions and 4 deletions
|
|
@ -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",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue