Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit a54cb96

Browse files
committed
cargo fmt
1 parent ad7b7d5 commit a54cb96

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

metrics/src/metrics.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,7 @@ pub mod test_mocks {
527527
assert!(!points.is_empty());
528528

529529
let new_points = points.len();
530-
self.points_written
531-
.lock()
532-
.unwrap()
533-
.extend(points);
530+
self.points_written.lock().unwrap().extend(points);
534531

535532
info!(
536533
"Writing {} points ({} total)",

programs/stake/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//! config for staking
22
//! carries variables that the stake program cares about
3+
#[allow(deprecated)]
4+
use solana_sdk::stake::config;
35
#[deprecated(
46
since = "1.8.0",
57
note = "Please use `solana_sdk::stake::config` or `solana_program::stake::config` instead"
68
)]
79
pub use solana_sdk::stake::config::*;
8-
#[allow(deprecated)]
9-
use solana_sdk::stake::config;
1010
use {
1111
bincode::deserialize,
1212
solana_config_program::{create_config_account, get_config_data},

sdk/program/src/serde_varint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ macro_rules! impl_var_int {
7474
let mut shift = 0u32;
7575
while shift < <$type>::BITS {
7676
let Some(byte) = seq.next_element::<u8>()? else {
77-
return Err(A::Error::custom("Invalid Sequence"));
78-
};
77+
return Err(A::Error::custom("Invalid Sequence"));
78+
};
7979
out |= ((byte & 0x7F) as Self) << shift;
8080
if byte & 0x80 == 0 {
8181
// Last byte should not have been truncated when it was

0 commit comments

Comments
 (0)