Skip to content

Instantly share code, notes, and snippets.

@wickedchicken
Created March 9, 2019 11:24
Show Gist options
  • Save wickedchicken/53006fed217e67741540781b0e1edb89 to your computer and use it in GitHub Desktop.
Save wickedchicken/53006fed217e67741540781b0e1edb89 to your computer and use it in GitHub Desktop.
// Increment the version number every time the version changes. I can't figure out how to
// break this out into its own const, see https://github.com/rust-lang/rust/issues/52393.
#[derive(Debug, Serialize, Deserialize)]
#[serde(tag = "schema_version")]
enum VersionedCheckListList {
#[serde(rename = "1")] // increment here
Current(CheckListList),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment