Removes unnecessary #[allow(dead_code)] in stake flags (#34322)

This commit is contained in:
Brooks 2023-12-05 11:12:22 -05:00 committed by GitHub
parent 2096626633
commit 20d33a5274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -1,7 +1,6 @@
use borsh::{BorshDeserialize, BorshSchema, BorshSerialize}; use borsh::{BorshDeserialize, BorshSchema, BorshSerialize};
/// Additional flags for stake state. /// Additional flags for stake state.
#[allow(dead_code)]
#[derive( #[derive(
Serialize, Serialize,
Deserialize, Deserialize,
@ -23,7 +22,6 @@ pub struct StakeFlags {
} }
/// Currently, only bit 1 is used. The other 7 bits are reserved for future usage. /// Currently, only bit 1 is used. The other 7 bits are reserved for future usage.
#[allow(dead_code)]
impl StakeFlags { impl StakeFlags {
/// Stake must be fully activated before deactivation is allowed (bit 1). /// Stake must be fully activated before deactivation is allowed (bit 1).
pub const MUST_FULLY_ACTIVATE_BEFORE_DEACTIVATION_IS_PERMITTED: Self = pub const MUST_FULLY_ACTIVATE_BEFORE_DEACTIVATION_IS_PERMITTED: Self =
@ -52,7 +50,6 @@ impl StakeFlags {
} }
} }
#[allow(dead_code)]
impl Default for StakeFlags { impl Default for StakeFlags {
fn default() -> Self { fn default() -> Self {
StakeFlags::empty() StakeFlags::empty()