Skip to content

Commit

Permalink
src/read/abbrev.rs: Mark mod tests as pub(crate)
Browse files Browse the repository at this point in the history
Fixes "warning: private item shadows public glob re-export" when doing
"cargo test".

warning: private item shadows public glob re-export
   --> src/read/mod.rs:681:1
    |
681 | / mod tests {
682 | |     use super::*;
683 | |     use crate::common::Format;
684 | |     use crate::endianity::LittleEndian;
...   |
826 | |     }
827 | | }
    | |_^
    |
note: the name `tests` in the type namespace is supposed to be publicly re-exported here
   --> src/read/mod.rs:208:9
    |
208 | pub use self::abbrev::*;
    |         ^^^^^^^^^^^^^^^
note: but the private item here shadows it
   --> src/read/mod.rs:681:1
    |
681 | / mod tests {
682 | |     use super::*;
683 | |     use crate::common::Format;
684 | |     use crate::endianity::LittleEndian;
...   |
826 | |     }
827 | | }
    | |_^
    = note: `#[warn(hidden_glob_reexports)]` on by default
  • Loading branch information
Enselic committed Jan 30, 2024
1 parent c173a41 commit 41fcd5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read/abbrev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ pub(crate) fn get_attribute_size(form: constants::DwForm, encoding: Encoding) ->
}

#[cfg(test)]
pub mod tests {
pub(crate) mod tests {
use super::*;
use crate::constants;
use crate::endianity::LittleEndian;
Expand Down

0 comments on commit 41fcd5b

Please sign in to comment.