Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Dec 11, 2024
1 parent dfd95ec commit 57307ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}

fn generate_idl_types(idl_source_path: &Path, idl_mod_path: &Path) -> Result<(), Box<dyn std::error::Error>> {
fn generate_idl_types(
idl_source_path: &Path,
idl_mod_path: &Path,
) -> Result<(), Box<dyn std::error::Error>> {
let idl_mod_rs = drift_idl_gen::generate_rust_types(&idl_source_path)
.map_err(|err| format!("generating IDL failed: {err:?}"))?;

Expand Down
6 changes: 4 additions & 2 deletions crates/src/drift_idl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![doc = r""]
#![doc = r" Auto-generated IDL types, manual edits do not persist (see `crates/drift-idl-gen`)"]
#![doc = r""]
use self::traits::ToAccountMetas;
use anchor_lang::{
prelude::{
account,
Expand All @@ -13,6 +12,8 @@ use anchor_lang::{
};
use serde::{Deserialize, Serialize};
use solana_sdk::{instruction::AccountMeta, pubkey::Pubkey};

use self::traits::ToAccountMetas;
pub mod traits {
use solana_sdk::instruction::AccountMeta;
#[doc = r" This is distinct from the anchor_lang version of the trait"]
Expand Down Expand Up @@ -1989,8 +1990,9 @@ pub mod instructions {
}
pub mod types {
#![doc = r" IDL types"]
use super::*;
use std::ops::Mul;

use super::*;
#[doc = ""]
#[doc = " backwards compatible u128 deserializing data from rust <=1.76.0 when u/i128 was 8-byte aligned"]
#[doc = " https://solana.stackexchange.com/questions/7720/using-u128-without-sacrificing-alignment-8"]
Expand Down

0 comments on commit 57307ef

Please sign in to comment.