Removes unnecessary #[allow(dead_code)] in stake flags (#34322)
This commit is contained in:
parent
2096626633
commit
20d33a5274
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue