Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic custom quote support #544

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert changes in that file, they are not related to the feature

"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