Skip to content

Commit

Permalink
cargo fmt & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
skrrb committed Sep 25, 2023
1 parent 70f88b5 commit ada0cd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion programs/openbook-v2/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions programs/openbook-v2/src/i80f48.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use fixed::types::I80F48;

// regression test for https://gitlab.com/tspiteri/fixed/-/issues/57
// see https://github.com/blockworks-foundation/fixed/issues/1
#[test]
fn bug_fixed_comparison_u64() {
use fixed::types::I80F48;

let a: u64 = 66000;
let b: u64 = 1000;
assert!(I80F48::from(a) > b); // fails!
Expand Down
1 change: 1 addition & 0 deletions programs/openbook-v2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub mod pubkey_option;
pub mod state;
pub mod token_utils;
pub mod types;

mod i80f48;

#[cfg(feature = "enable-gpl")]
Expand Down

0 comments on commit ada0cd8

Please sign in to comment.