remote-helper: Remove `SyncWriter` in favor of `PaintTarget`
This commit is contained in:
parent
153a8f9fbe
commit
ee9ecfda76
|
|
@ -930,16 +930,16 @@ fn sync(
|
||||||
profile: &Profile,
|
profile: &Profile,
|
||||||
) -> Result<(), cli::node::SyncError> {
|
) -> Result<(), cli::node::SyncError> {
|
||||||
let progress = if io::stderr().is_terminal() {
|
let progress = if io::stderr().is_terminal() {
|
||||||
cli::node::SyncWriter::Stderr(io::stderr())
|
term::PaintTarget::Stderr
|
||||||
} else {
|
} else {
|
||||||
cli::node::SyncWriter::Sink
|
term::PaintTarget::Hidden
|
||||||
};
|
};
|
||||||
let result = cli::node::announce(
|
let result = cli::node::announce(
|
||||||
repo,
|
repo,
|
||||||
cli::node::SyncSettings::default().with_profile(profile),
|
cli::node::SyncSettings::default().with_profile(profile),
|
||||||
cli::node::SyncReporting {
|
cli::node::SyncReporting {
|
||||||
progress,
|
progress,
|
||||||
completion: cli::node::SyncWriter::Stderr(io::stderr()),
|
completion: term::PaintTarget::Stderr,
|
||||||
debug: opts.sync_debug,
|
debug: opts.sync_debug,
|
||||||
},
|
},
|
||||||
&mut node,
|
&mut node,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue