mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 19:21:03 +00:00
fix nightly warnings (#7347)
This commit is contained in:
@@ -1286,7 +1286,7 @@ macro_rules! chain_ops {
|
|||||||
/// Builds a new object suitable for chain operations.
|
/// Builds a new object suitable for chain operations.
|
||||||
#[cfg(feature = "full-node")]
|
#[cfg(feature = "full-node")]
|
||||||
pub fn new_chain_ops(
|
pub fn new_chain_ops(
|
||||||
mut config: &mut Configuration,
|
config: &mut Configuration,
|
||||||
jaeger_agent: Option<std::net::SocketAddr>,
|
jaeger_agent: Option<std::net::SocketAddr>,
|
||||||
) -> Result<
|
) -> Result<
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -433,12 +433,12 @@ impl<T: Config> Registrar for Pallet<T> {
|
|||||||
|
|
||||||
// Apply a lock to the parachain.
|
// Apply a lock to the parachain.
|
||||||
fn apply_lock(id: ParaId) {
|
fn apply_lock(id: ParaId) {
|
||||||
Paras::<T>::mutate(id, |x| x.as_mut().map(|mut info| info.locked = true));
|
Paras::<T>::mutate(id, |x| x.as_mut().map(|info| info.locked = true));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove a lock from the parachain.
|
// Remove a lock from the parachain.
|
||||||
fn remove_lock(id: ParaId) {
|
fn remove_lock(id: ParaId) {
|
||||||
Paras::<T>::mutate(id, |x| x.as_mut().map(|mut info| info.locked = false));
|
Paras::<T>::mutate(id, |x| x.as_mut().map(|info| info.locked = false));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register a Para ID under control of `manager`.
|
// Register a Para ID under control of `manager`.
|
||||||
|
|||||||
Reference in New Issue
Block a user