diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/opener/src/lib.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/opener/src/lib.rs')
-rw-r--r-- | vendor/opener/src/lib.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/vendor/opener/src/lib.rs b/vendor/opener/src/lib.rs index a84f9491a..ee00d37a2 100644 --- a/vendor/opener/src/lib.rs +++ b/vendor/opener/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/opener/0.5.0")] +#![doc(html_root_url = "https://docs.rs/opener/0.5.2")] //! This crate provides the [`open`] function, which opens a file or link with the default program //! configured on the system: @@ -140,15 +140,11 @@ impl Display for OpenError { status, stderr, } => { - write!( - f, - "command '{}' did not execute successfully; {}", - cmd, status - )?; + write!(f, "command '{cmd}' did not execute successfully; {status}")?; let stderr = stderr.trim(); if !stderr.is_empty() { - write!(f, "\ncommand stderr:\n{}", stderr)?; + write!(f, "\ncommand stderr:\n{stderr}")?; } } } |