Skip to content

Commit 18d7bb1

Browse files
Copilotanthonykim1
andcommitted
Address code review feedback
Co-authored-by: anthonykim1 <[email protected]>
1 parent b9210a9 commit 18d7bb1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

crates/pet-reporter/src/json.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ pub struct JsonReporter {
2121
environments: Arc<Mutex<Vec<PythonEnvironment>>>,
2222
}
2323

24+
impl Default for JsonReporter {
25+
fn default() -> Self {
26+
Self::new()
27+
}
28+
}
29+
2430
impl JsonReporter {
2531
pub fn new() -> Self {
2632
JsonReporter {

crates/pet/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ enum Commands {
3737
cache_directory: Option<PathBuf>,
3838

3939
/// Display verbose output (defaults to warnings).
40+
/// Note: Has no effect when --json is used, as logging is disabled to avoid polluting JSON output.
4041
#[arg(short, long)]
4142
verbose: bool,
4243

0 commit comments

Comments
 (0)