Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Oct 23, 2020
1 parent c782069 commit 90e6812
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions programs/bpf/rust/ristretto/src/ristretto.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use curve25519_dalek::{ristretto::RistrettoPoint, scalar::Scalar};
use solana_program_sdk::{entrypoint::SUCCESS, program_error::ProgramError};
use solana_program_sdk::program_error::ProgramError;

/// Multiply a ristretto point with a scalar
///
Expand Down Expand Up @@ -37,7 +37,7 @@ pub fn ristretto_mul(
)
};
match status {
SUCCESS => Ok(result),
solana_program_sdk::entrypoint::SUCCESS => Ok(result),
_ => Err(status.into()),
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
extern crate self as solana_program_sdk;

pub mod account;
pub mod account_utils;
pub mod account_info;
pub mod account_utils;
pub mod bpf_loader;
pub mod bpf_loader_deprecated;
pub mod clock;
Expand Down
6 changes: 1 addition & 5 deletions sdk/program/src/sysvar/instructions.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
//! This account contains the serialized transaction instructions
use crate::{
instruction::Instruction,
sanitize::SanitizeError,
sysvar::Sysvar,
};
use crate::{instruction::Instruction, sanitize::SanitizeError, sysvar::Sysvar};

pub type Instructions = Vec<Instruction>;

Expand Down
1 change: 0 additions & 1 deletion sdk/src/epoch_schedule.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub use solana_program_sdk::epoch_schedule::*;

1 change: 0 additions & 1 deletion sdk/src/secp256k1_program.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub use solana_program_sdk::secp256k1_program::*;

1 change: 0 additions & 1 deletion sdk/src/serialize_utils.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub use solana_program_sdk::serialize_utils::*;

1 change: 0 additions & 1 deletion sdk/src/slot_history.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub use solana_program_sdk::slot_history::*;

1 change: 0 additions & 1 deletion sdk/src/stake_history.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub use solana_program_sdk::stake_history::*;

0 comments on commit 90e6812

Please sign in to comment.