From a3644a672ff06fda89afb4a38e98023a124eeaae Mon Sep 17 00:00:00 2001 From: chris west Date: Wed, 15 Jan 2020 19:31:55 -0800 Subject: [PATCH] almost everything is a link --- src/gopher/type.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gopher/type.rs b/src/gopher/type.rs index a9badbc..a6320d8 100644 --- a/src/gopher/type.rs +++ b/src/gopher/type.rs @@ -48,11 +48,7 @@ impl Type { /// Is this a link, ie something we can navigate to or open? pub fn is_link(self) -> bool { - match self { - Type::Menu | Type::Search | Type::Telnet | Type::HTML => true, - e if e.is_download() => true, - _ => false, - } + !self.is_info() } /// Is this something we can download?