chore: fix warnings

This commit is contained in:
Shunsuke Shibayama 2023-10-07 14:46:19 +09:00
parent 3085229801
commit fd74117c50
5 changed files with 18 additions and 5 deletions

View file

@ -328,6 +328,7 @@ impl Ord for Location {
}
impl PartialOrd for Location {
#[allow(clippy::incorrect_partial_ord_impl_on_ord_type)]
fn partial_cmp(&self, other: &Location) -> Option<Ordering> {
if self.is_unknown() || other.is_unknown() {
None