Skip to content

Commit

Permalink
fmt sway cor and stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Jul 22, 2024
1 parent ca2daa3 commit 71fa9f8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sway-lib-core/src/codec.sw
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ impl AbiEncode for raw_slice {

impl<T> AbiEncode for &__slice[T]
where
T: AbiEncode
T: AbiEncode,
{
fn abi_encode(self, buffer: Buffer) -> Buffer {
Buffer {
Expand Down
1 change: 0 additions & 1 deletion sway-lib-core/src/ops.sw
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,6 @@ impl Eq for raw_ptr {
}
}


/// Trait to evaluate if one value is greater or less than another of the same type.
pub trait Ord {
/// Evaluates if one value of the same type is greater than another.
Expand Down
2 changes: 1 addition & 1 deletion sway-lib-core/src/slice.sw
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use ::raw_ptr::*;

impl<T> &__slice[T] {
pub fn ptr(self) -> raw_ptr {
let (ptr, _) = asm(s:self) {
let (ptr, _) = asm(s: self) {
s: (raw_ptr, u64)
};
ptr
Expand Down

0 comments on commit 71fa9f8

Please sign in to comment.