From 2f323f5c642ca30106f5aa29386fac51d8cefe05 Mon Sep 17 00:00:00 2001 From: lovasoa Date: Sat, 6 Apr 2024 23:15:27 +0200 Subject: [PATCH] msrv --- .github/workflows/ci.yml | 2 +- README.md | 6 +++++- src/de.rs | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd2dadf..526cb31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - rust: [nightly, beta, stable, 1.56.0] + rust: [1.63, stable] timeout-minutes: 45 steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 45c91f1..1c231a1 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,8 @@ serde-sqlite-jsonb = { version = "0.1", features = ["serde-json5"], default-feat ## Format The format of the JSONB column is described in the SQLite documentation: -https://sqlite.org/draft/jsonb.html \ No newline at end of file +https://sqlite.org/draft/jsonb.html + +## MSRV + +Requires rust >= 1.63 (debian stable) \ No newline at end of file diff --git a/src/de.rs b/src/de.rs index 474aad1..81ad7c7 100644 --- a/src/de.rs +++ b/src/de.rs @@ -559,7 +559,9 @@ impl<'de, 'a, R: Read> de::Deserializer<'de> for &'a mut Deserializer { let header = self.read_header()?; let s = self.read_string(header)?; if s.len() != 1 { - return Err(Error::Message("invalid string length for char".into())); + return Err(Error::Message( + "invalid string length for char".into(), + )); } visitor.visit_char(s.chars().next().unwrap()) }