mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix error while compiling rslib (#2187)
* protobuf generate error pass --experimental_allow_proto3_optional to protoc add missing dereive trait to struct Daylimit * delete invalid derive trait Eq * remove argument from protoc --experimental_allow_proto3_optional
This commit is contained in:
parent
d902b00d0e
commit
0c9cecd7a3
2 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ pub fn write_backend_proto_rs() {
|
||||||
)
|
)
|
||||||
.type_attribute(
|
.type_attribute(
|
||||||
"Deck.Normal.DayLimit",
|
"Deck.Normal.DayLimit",
|
||||||
"#[derive(Copy, serde_derive::Deserialize, serde_derive::Serialize)]",
|
"#[derive(Copy, Eq, serde_derive::Deserialize, serde_derive::Serialize)]",
|
||||||
)
|
)
|
||||||
.type_attribute("HelpPageLinkRequest.HelpPage", "#[derive(strum::EnumIter)]")
|
.type_attribute("HelpPageLinkRequest.HelpPage", "#[derive(strum::EnumIter)]")
|
||||||
.type_attribute("CsvMetadata.Delimiter", "#[derive(strum::EnumIter)]")
|
.type_attribute("CsvMetadata.Delimiter", "#[derive(strum::EnumIter)]")
|
||||||
|
|
|
@ -22,7 +22,7 @@ pub struct ForeignData {
|
||||||
updated_tags: Vec<String>,
|
updated_tags: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub struct ForeignNote {
|
pub struct ForeignNote {
|
||||||
guid: String,
|
guid: String,
|
||||||
|
|
Loading…
Reference in a new issue