Skip to content

Commit 3df3405

Browse files
Copilotjosecelano
andcommitted
fix: resolve clippy linting warnings in user_output module
- Added backticks around UserOutput in doc comment - Replaced wildcard imports with explicit imports in core.rs - Replaced wildcard imports with explicit imports in test_support.rs - Added #[must_use] attribute to endpoint() method in telemetry.rs All clippy pedantic checks now pass. Co-authored-by: josecelano <[email protected]>
1 parent 93e8f27 commit 3df3405

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/presentation/user_output/core.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
//! Core UserOutput struct and implementation
1+
//! Core `UserOutput` struct and implementation
22
33
use std::io::Write;
44

5-
use super::messages::*;
5+
use super::messages::{
6+
ErrorMessage, InfoBlockMessage, ProgressMessage, ResultMessage, StepsMessage, SuccessMessage,
7+
WarningMessage,
8+
};
69
use super::sinks::StandardSink;
710
use super::verbosity::VerbosityFilter;
811
use super::{Channel, FormatterOverride, OutputMessage, OutputSink, Theme, VerbosityLevel};

src/presentation/user_output/sinks/telemetry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ impl TelemetrySink {
2323

2424
/// Get the endpoint URL
2525
#[cfg(test)]
26+
#[must_use]
2627
pub fn endpoint(&self) -> &str {
2728
&self.endpoint
2829
}

src/presentation/user_output/test_support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use std::io::Write;
77
use std::sync::{Arc, Mutex};
88

9-
use super::*;
9+
use super::{Theme, UserOutput, VerbosityLevel};
1010

1111
/// Writer implementation for tests that writes to a shared buffer
1212
///

0 commit comments

Comments
 (0)