remote-helper: Remove `SyncWriter` in favor of `PaintTarget`

This commit is contained in:
Erik Kundt 2025-09-10 23:51:34 +02:00 committed by Lorenz Leutgeb
parent 153a8f9fbe
commit ee9ecfda76
1 changed files with 3 additions and 3 deletions

View File

@ -930,16 +930,16 @@ fn sync(
profile: &Profile,
) -> Result<(), cli::node::SyncError> {
let progress = if io::stderr().is_terminal() {
cli::node::SyncWriter::Stderr(io::stderr())
term::PaintTarget::Stderr
} else {
cli::node::SyncWriter::Sink
term::PaintTarget::Hidden
};
let result = cli::node::announce(
repo,
cli::node::SyncSettings::default().with_profile(profile),
cli::node::SyncReporting {
progress,
completion: cli::node::SyncWriter::Stderr(io::stderr()),
completion: term::PaintTarget::Stderr,
debug: opts.sync_debug,
},
&mut node,