loosen is_null
This commit is contained in:
parent
5e85d06df6
commit
a6254d92b5
@ -91,7 +91,9 @@ impl<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx>> Nullable<'a, Ctx, A> {
|
|||||||
Nullable::NotNull(point) => Some(point),
|
Nullable::NotNull(point) => Some(point),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a, Ctx: Context<'a>, A: MentionableBase<'a, Ctx>> Nullable<'a, Ctx, A> {
|
||||||
pub fn is_null(&self) -> bool {
|
pub fn is_null(&self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
Nullable::Null(_) => true,
|
Nullable::Null(_) => true,
|
||||||
|
Loading…
Reference in New Issue
Block a user