Skip to content

Commit dcfdc42

Browse files
author
Stephan Dilly
committed
cleanup
1 parent f1fcd34 commit dcfdc42

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/commitlist.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ impl CommitList {
9797
}
9898

9999
///
100-
//TODO: make const as soon as Option::<T>::as_ref
101-
// is stabilizeD to be const (not as of rust 1.47)
102-
#[allow(clippy::missing_const_for_fn)]
103-
pub fn tags(&self) -> Option<&Tags> {
100+
pub const fn tags(&self) -> Option<&Tags> {
104101
self.tags.as_ref()
105102
}
106103

0 commit comments

Comments
 (0)