From dcfdc4200364dcb7639b8ecdd79dd67ba9cd8fa3 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Mon, 8 Mar 2021 01:51:55 +0100 Subject: [PATCH] cleanup --- src/components/commitlist.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/commitlist.rs b/src/components/commitlist.rs index 16b071d9..a569373d 100644 --- a/src/components/commitlist.rs +++ b/src/components/commitlist.rs @@ -97,10 +97,7 @@ impl CommitList { } /// - //TODO: make const as soon as Option::::as_ref - // is stabilizeD to be const (not as of rust 1.47) - #[allow(clippy::missing_const_for_fn)] - pub fn tags(&self) -> Option<&Tags> { + pub const fn tags(&self) -> Option<&Tags> { self.tags.as_ref() }