Fix tracking issue for bool_to_option

This commit is contained in:
Jacob Pratt 2021-07-10 18:25:01 -04:00
parent 432e145bd5
commit 14633a0a27
No known key found for this signature in database
GPG Key ID: B80E19E4662B5AA4

View File

@ -12,7 +12,7 @@ impl bool {
/// assert_eq!(false.then_some(0), None);
/// assert_eq!(true.then_some(0), Some(0));
/// ```
#[unstable(feature = "bool_to_option", issue = "64260")]
#[unstable(feature = "bool_to_option", issue = "80967")]
#[inline]
pub fn then_some<T>(self, t: T) -> Option<T> {
if self { Some(t) } else { None }