mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
chore: fix warnings
This commit is contained in:
parent
3085229801
commit
fd74117c50
5 changed files with 18 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue