Skip to content

Allow building xsd-parser-types with xml but without quick-xml#280

Open
RoastVeg wants to merge 1 commit into
Bergmann89:masterfrom
RoastVeg:fix/types_xml_only
Open

Allow building xsd-parser-types with xml but without quick-xml#280
RoastVeg wants to merge 1 commit into
Bergmann89:masterfrom
RoastVeg:fix/types_xml_only

Conversation

@RoastVeg

Copy link
Copy Markdown

No description provided.

@Bergmann89 Bergmann89 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Hey @RoastVeg, thanks for your contribution. Looks good to me, just a few formatting remarks. I also started the CI pipeline please check if it passes, then we can merge this.

events::attributes::Attribute,
name::QName,
};
#[cfg(not(feature = "quick-xml"))]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please move this after the using directives block (right before Attribute).

#[cfg(feature = "quick-xml")]
use quick_xml::events::Event;

#[cfg(feature = "quick-xml")]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you please move all conditional using directives to it's own block? Like:

use std::std::FromStr;

use other_crate::SomeType;

#[cfg(feature = "quick-xml")]
use quick_xml::events::Event;

#[cfg(feature = "quick-xml")]
use crate::quick_xml::{DeserializeBytes, SerializeBytes};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants