diff --git a/functions/_tide_item_rustc.fish b/functions/_tide_item_rustc.fish index b46cd99c..52a90235 100644 --- a/functions/_tide_item_rustc.fish +++ b/functions/_tide_item_rustc.fish @@ -1,6 +1,6 @@ function _tide_item_rustc if path is $_tide_parent_dirs/Cargo.toml - rustc --version | string match -qr "(?[\d.]+)" + rustc --version 2>/dev/null | string match -qr "(?[\d.]+)" _tide_print_item rustc $tide_rustc_icon' ' $v end end