From 199713a39aad1e559cb85d230ae22b64394631bc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 22 Mar 2020 10:26:09 +1000 Subject: [PATCH] handle collections with sortBackwards set to 0 instead of a bool --- rslib/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/config.rs b/rslib/src/config.rs index 3ee0114d0..c768b1122 100644 --- a/rslib/src/config.rs +++ b/rslib/src/config.rs @@ -28,7 +28,7 @@ pub struct Config { pub(crate) local_offset: Option, #[serde(rename = "sortType", deserialize_with = "default_on_invalid")] pub(crate) browser_sort_kind: SortKind, - #[serde(rename = "sortBackwards", default)] + #[serde(rename = "sortBackwards", deserialize_with = "default_on_invalid")] pub(crate) browser_sort_reverse: bool, }