Skip to content

Commit

Permalink
Add debug implementations for some types: this should help when debug…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
Mingun committed Aug 21, 2021
1 parent ff217ef commit 5f140a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/de/escape.rs
Expand Up @@ -12,7 +12,7 @@ use std::borrow::Cow;
/// Escaping the value is actually not always necessary, for instance
/// when converting to float, we don't expect any escapable character
/// anyway
#[derive(Clone)]
#[derive(Clone, Debug)]
pub(crate) struct EscapedDeserializer {
decoder: Decoder,
/// Possible escaped value of text/CDATA or attribute value
Expand Down
2 changes: 1 addition & 1 deletion src/events/attributes.rs
Expand Up @@ -13,7 +13,7 @@ use std::{borrow::Cow, collections::HashMap, io::BufRead, ops::Range};
/// The duplicate check can be turned off by calling [`with_checks(false)`].
///
/// [`with_checks(false)`]: #method.with_checks
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct Attributes<'a> {
/// slice of `Element` corresponding to attributes
bytes: &'a [u8],
Expand Down
4 changes: 2 additions & 2 deletions src/reader.rs
Expand Up @@ -1568,12 +1568,12 @@ impl NamespaceBufferIndex {

/// Utf8 Decoder
#[cfg(not(feature = "encoding"))]
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
pub struct Decoder;

/// Utf8 Decoder
#[cfg(feature = "encoding")]
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
pub struct Decoder {
encoding: &'static Encoding,
}
Expand Down

0 comments on commit 5f140a2

Please sign in to comment.