From 8b91e6b2ce2501b85dde9c9a083a99909ff6cab5 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 24 Dec 2022 13:39:09 +0100 Subject: [PATCH] =?UTF-8?q?Use=20=E2=94=80=20(U+2500)=20to=20draw=20border?= =?UTF-8?q?s=20(#282)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/steps/generic.rs | 2 +- src/terminal.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b4fd4c9f..f485712a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2055,7 +2055,7 @@ dependencies = [ [[package]] name = "topgrade" -version = "10.2.3" +version = "10.2.4" dependencies = [ "cfg-if", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 16152be3..1a459e71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ keywords = ["upgrade", "update"] license = "GPL-3.0" # license-file = "LICENSE" repository = "https://github.com/topgrade-rs/topgrade" -version = "10.2.3" +version = "10.2.4" authors = ["Roey Darwish Dror ", "Thomas Schönauer "] exclude = ["doc/screenshot.gif"] edition = "2021" diff --git a/src/steps/generic.rs b/src/steps/generic.rs index 2c30dfd6..541ea2e9 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -488,7 +488,7 @@ pub fn run_composer_update(ctx: &ExecutionContext) -> Result<()> { pub fn run_dotnet_upgrade(ctx: &ExecutionContext) -> Result<()> { let dotnet = utils::require("dotnet")?; - let dotnet_help_output = ctx.run_type().execute(&dotnet).arg("-h").output().err().unwrap(); + let dotnet_help_output = ctx.run_type().execute(&dotnet).arg("-h").output_checked_utf8().unwrap(); if dotnet_help_output.to_string().contains("tool") { let output = Command::new(dotnet) diff --git a/src/terminal.rs b/src/terminal.rs index 1cb79e41..92a57d13 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -143,7 +143,7 @@ impl Terminal { .write_fmt(format_args!( "{}\n", style(format_args!( - "\n―― {} {:―^border$}", + "\n── {} {:─^border$}", message, "", border = max(