From a6afa81d1d9f2dd7d10fe7c0555ae8a8a6d84867 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 12 Dec 2019 01:25:28 +0100 Subject: use helper traits for better code --- src/bt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bt.rs') diff --git a/src/bt.rs b/src/bt.rs index aac8484..21078ff 100644 --- a/src/bt.rs +++ b/src/bt.rs @@ -112,7 +112,7 @@ pub enum Legend { } impl Legend { - pub fn get_api_id(self) -> Option { + pub fn api_id(self) -> Option { Some( match self { Legend::None => return None, -- cgit v1.2.3