This commit is contained in:
Stephan Dilly 2021-03-08 01:51:55 +01:00
parent f1fcd341c6
commit dcfdc42003

View file

@ -97,10 +97,7 @@ impl CommitList {
} }
/// ///
//TODO: make const as soon as Option::<T>::as_ref pub const fn tags(&self) -> Option<&Tags> {
// is stabilizeD to be const (not as of rust 1.47)
#[allow(clippy::missing_const_for_fn)]
pub fn tags(&self) -> Option<&Tags> {
self.tags.as_ref() self.tags.as_ref()
} }