Skip to content

Commit b486362

Browse files
committed
refactor(shell): Clarify we're printing transient status
1 parent ed2f8ef commit b486362

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/core/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl Shell {
168168
self.print(&status, Some(&message), &HEADER, true)
169169
}
170170

171-
pub fn status_header<T>(&mut self, status: T) -> CargoResult<()>
171+
pub fn transient_status<T>(&mut self, status: T) -> CargoResult<()>
172172
where
173173
T: fmt::Display,
174174
{

src/cargo/util/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl<'gctx> State<'gctx> {
429429
if self.gctx.shell().is_cleared() || self.last_line.as_ref() != Some(&line) {
430430
let mut shell = self.gctx.shell();
431431
shell.set_needs_clear(false);
432-
shell.status_header(&self.name)?;
432+
shell.transient_status(&self.name)?;
433433
if let Some(tb) = report {
434434
write!(shell.err(), "{line}{tb}\r")?;
435435
} else {

0 commit comments

Comments
 (0)