mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Use standard naming so Prost can remove redundant text
This commit is contained in:
parent
557df8eb59
commit
a5365e25fb
2 changed files with 6 additions and 6 deletions
|
@ -75,9 +75,9 @@ message SearchNode {
|
|||
Joiner joiner = 2;
|
||||
}
|
||||
enum FieldSearchMode {
|
||||
FIELD_SEARCH_NORMAL = 0;
|
||||
FIELD_SEARCH_REGEX = 1;
|
||||
FIELD_SEARCH_NOCOMBINING = 2;
|
||||
FIELD_SEARCH_MODE_NORMAL = 0;
|
||||
FIELD_SEARCH_MODE_REGEX = 1;
|
||||
FIELD_SEARCH_MODE_NOCOMBINING = 2;
|
||||
}
|
||||
message Field {
|
||||
string field_name = 1;
|
||||
|
|
|
@ -58,9 +58,9 @@ pub enum FieldSearchMode {
|
|||
impl From<FieldSearchModeProto> for FieldSearchMode {
|
||||
fn from(mode: FieldSearchModeProto) -> Self {
|
||||
match mode {
|
||||
FieldSearchModeProto::FieldSearchNormal => Self::Normal,
|
||||
FieldSearchModeProto::FieldSearchRegex => Self::Regex,
|
||||
FieldSearchModeProto::FieldSearchNocombining => Self::NoCombining,
|
||||
FieldSearchModeProto::Normal => Self::Normal,
|
||||
FieldSearchModeProto::Regex => Self::Regex,
|
||||
FieldSearchModeProto::Nocombining => Self::NoCombining,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue