Skip to content

Commit 6c930d7

Browse files
committed
Fix clippy missing_docs warnings in test code
1 parent 35ee1ba commit 6c930d7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spdlog/src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ pub enum Error {
110110
Multiple(Vec<Error>),
111111

112112
#[cfg(test)]
113+
#[doc(hidden)]
113114
#[error("{0}")]
114115
__ForInternalTestsUseOnly(i32),
115116
}

spdlog/src/formatter/pattern_formatter/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ tuple_pattern! {
11991199
}
12001200

12011201
#[cfg(test)]
1202-
pub mod tests {
1202+
mod tests {
12031203
use std::ops::Range;
12041204

12051205
use super::*;
@@ -1209,14 +1209,14 @@ pub mod tests {
12091209
// them pub in test builds.
12101210

12111211
#[must_use]
1212-
pub fn get_mock_record() -> Record<'static> {
1212+
fn get_mock_record() -> Record<'static> {
12131213
Record::builder(Level::Info, "record_payload")
12141214
.logger_name("logger_name")
12151215
.source_location(Some(SourceLocation::__new("module", "file", 10, 20)))
12161216
.build()
12171217
}
12181218

1219-
pub fn test_pattern<P, T>(pattern: P, formatted: T, style_range: Option<Range<usize>>)
1219+
fn test_pattern<P, T>(pattern: P, formatted: T, style_range: Option<Range<usize>>)
12201220
where
12211221
P: Pattern,
12221222
T: AsRef<str>,

0 commit comments

Comments
 (0)