From a51d0ee80904a383c4ad93f0ab8d07643aa2709d Mon Sep 17 00:00:00 2001 From: Yezzi Hsueh Date: Mon, 13 Nov 2023 14:01:28 +0800 Subject: [PATCH] fix: suppress panic message of unignore_sigpipe --- src/bin/dockertags.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/dockertags.rs b/src/bin/dockertags.rs index e81e939..dd5d39c 100644 --- a/src/bin/dockertags.rs +++ b/src/bin/dockertags.rs @@ -1,3 +1,4 @@ +use std::io::Write; use clap::{arg, Parser}; //use docker_tags::docker::DockerHubTagsFetcher; use docker_tags::{DockerTags, QueryArgs}; @@ -30,6 +31,6 @@ fn main() { let tags = docker_tags_fetcher.get_tags(&query_args); for tag in tags { - println!("{}", &tag) + let _ = writeln!(std::io::stdout(), "{}", &tag); } }