Correctly recognize defined spans.

Without this change, the `to_range` method method returns `None` even when spans
are enabled.
This commit is contained in:
Jim Blandy authored and Dzmitry Malyshau committed 2021-09-15 10:53:46 -04:00
1 parent d31121df77
commit e5ba11332f
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ impl Span {
/// Check wether `self` was defined or is a default/unknown span
fn is_defined(&self) -> bool {
*self == Self::default()
*self != Self::default()
}
}