Skip to content

Commit

Permalink
Only enable debug for structs containing references/vectors due to #23,…
Browse files Browse the repository at this point in the history
… when not needed in the public API.
  • Loading branch information
Alex Huszagh committed Sep 5, 2019
1 parent 078fff3 commit 4d8a00a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lexical-core/src/atof/algorithm/bigcomp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ if #[cfg(limb_width_64)] {
}} // cfg_if

/// Storage for a big integer type.
#[derive(Debug, Clone, Default, PartialEq, Eq)]
#[derive(Clone, Default, PartialEq, Eq)]
#[cfg_attr(test, derive(Debug))]
pub struct Bigint {
/// Internal storage for the Bigint, in little-endian order.
///
Expand Down
3 changes: 2 additions & 1 deletion lexical-core/src/atof/algorithm/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ if #[cfg(feature = "radix")] {
// BIGINT

/// Storage for a big integer type.
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Clone, PartialEq, Eq)]
#[cfg_attr(test, derive(Debug))]
pub(super) struct Bigint {
/// Internal storage for the Bigint, in little-endian order.
data: DataType,
Expand Down
2 changes: 1 addition & 1 deletion lexical-core/src/atof/algorithm/correct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ macro_rules! rtrim_0 {
// FLOAT SLICE

/// Substrings and information from parsing the float.
#[derive(Debug)]
#[cfg_attr(test, derive(Debug))]
pub(super) struct FloatSlice<'a> {
/// Substring for the integer component of the mantissa.
integer: &'a [u8],
Expand Down

0 comments on commit 4d8a00a

Please sign in to comment.