Skip to content

Commit efc7c83

Browse files
committed
Use print interface
1 parent 8ec927e commit efc7c83

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ruby_executable/src/bin/ruby_build.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,12 @@ fn ruby_build(args: &RubyArgs) -> Result<(), Box<dyn std::error::Error>> {
7979
let dockerfile = ruby_dockerfile_contents(base_image);
8080
let dockerfile_path = temp_dir.path().join("Dockerfile");
8181

82-
log = {
83-
let mut bullet = log.bullet("Dockerfile");
84-
bullet.stream_with("Writing contents to tmpdir", |mut stream, _| {
85-
write!(stream, "{dockerfile}")?;
86-
fs_err::write(&dockerfile_path, &dockerfile)
82+
_ = {
83+
print::bullet("Dockerfile");
84+
print::sub_stream_with("Writing contents to tmpdir", |mut stream, _| {
85+
write!(stream, "{dockerfile}")
86+
.and_then(|_| fs_err::write(&dockerfile_path, &dockerfile))
8787
})?;
88-
bullet.done()
8988
};
9089

9190
_ = {

0 commit comments

Comments
 (0)