Skip to content

Commit

Permalink
Fix weird formatting (FuelLabs#4785)
Browse files Browse the repository at this point in the history
## Description
Looked for the le function for a while being realizing the weird
formatting was hiding it. The newline for the impls are also unnecessary

## Checklist

- [ ] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [ ] I have requested a review from the relevant team or maintainers.
  • Loading branch information
SwayStar123 authored Jul 12, 2023
1 parent 09ba6c6 commit e184eb9
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions sway-lib-core/src/ops.sw
Original file line number Diff line number Diff line change
Expand Up @@ -484,21 +484,17 @@ trait OrdEq: Ord + Eq {
} {
fn ge(self, other: Self) -> bool {
self.gt(other) || self.eq(other)
} fn le(self, other: Self) -> bool {
}
fn le(self, other: Self) -> bool {
self.lt(other) || self.eq(other)
}
}

impl OrdEq for u64 {
}
impl OrdEq for u32 {
}
impl OrdEq for u16 {
}
impl OrdEq for u8 {
}
impl OrdEq for b256 {
}
impl OrdEq for u64 {}
impl OrdEq for u32 {}
impl OrdEq for u16 {}
impl OrdEq for u8 {}
impl OrdEq for b256 {}

pub trait Shift {
fn lsh(self, other: u64) -> Self;
Expand Down

0 comments on commit e184eb9

Please sign in to comment.