Skip to content

Commit

Permalink
msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Apr 6, 2024
1 parent 761f47f commit 2f323f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
https://sqlite.org/draft/jsonb.html

## MSRV

Requires rust >= 1.63 (debian stable)
4 changes: 3 additions & 1 deletion src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,9 @@ impl<'de, 'a, R: Read> de::Deserializer<'de> for &'a mut Deserializer<R> {
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())
}
Expand Down

0 comments on commit 2f323f5

Please sign in to comment.