Skip to content

Commit

Permalink
custom quote support
Browse files Browse the repository at this point in the history
basic custom quote support

remove extra file

more consistent styling

allow actually using the feature

fix logic issue

fmt
  • Loading branch information
Jay Jackson committed Jan 21, 2023
1 parent add7406 commit ae22687
Show file tree
Hide file tree
Showing 11 changed files with 436 additions and 83 deletions.
9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ include = ["src/*", "LICENSE-MIT.md", "README.md"]
document-features = { version = "0.2", optional = true }
encoding_rs = { version = "0.8", optional = true }
serde = { version = "1.0.100", optional = true }
tokio = { version = "1.0", optional = true, default-features = false, features = ["io-util"] }
tokio = { version = "1.0", optional = true, default-features = false, features = [
"io-util",
] }
memchr = "2.0"

[dev-dependencies]
Expand All @@ -26,7 +28,10 @@ pretty_assertions = "1.3"
regex = "1"
serde = { version = "1.0", features = ["derive"] }
serde-value = "0.7"
tokio = { version = "1.21", default-features = false, features = ["macros", "rt"] }
tokio = { version = "1.21", default-features = false, features = [
"macros",
"rt",
] }
tokio-test = "0.4"

[lib]
Expand Down
4 changes: 2 additions & 2 deletions src/de/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ where
de: &'a mut Deserializer<'de, R>,
/// State of the iterator over attributes. Contains the next position in the
/// inner `start` slice, from which next attribute should be parsed.
iter: IterState,
iter: IterState<'a>,
/// Current state of the accessor that determines what next call to API
/// methods should return.
source: ValueSource,
Expand Down Expand Up @@ -201,7 +201,7 @@ where
) -> Result<Self, DeError> {
Ok(MapAccess {
de,
iter: IterState::new(start.name().as_ref().len(), false),
iter: IterState::new(start.name().as_ref().len(), false, &[]),
start,
source: ValueSource::Unknown,
fields,
Expand Down
Loading

0 comments on commit ae22687

Please sign in to comment.