Skip to content

Commit

Permalink
Fix clippy concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
s0me0ne-unkn0wn committed Jan 9, 2025
1 parent 411a21e commit 36faad3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion integration-tests/emulated/helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub use xcm_emulator::Chain;
/// TODO: when bumping to polkadot-sdk v1.8.0,
/// remove this crate altogether and get the macros from `emulated-integration-tests-common`.
/// TODO: backport this macros to polkadot-sdk
#[macro_export]
macro_rules! test_relay_is_trusted_teleporter {
( $sender_relay:ty, $sender_xcm_config:ty, vec![$( $receiver_para:ty ),+], ($assets:expr, $amount:expr) ) => {
Expand Down
2 changes: 1 addition & 1 deletion relay/polkadot/src/coretime_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ fn migrate_send_assignments_to_coretime_chain<
},
};

let time_slice = (valid_until + TIMESLICE_PERIOD - 1) / TIMESLICE_PERIOD;
let time_slice = valid_until.div_ceil(TIMESLICE_PERIOD);
log::trace!(target: "coretime-migration", "Sending of lease holding para {:?}, valid_until: {:?}, time_slice: {:?}", p, valid_until, time_slice);
Some(mk_coretime_call::<T>(CoretimeCalls::SetLease(p.into(), time_slice)))
});
Expand Down

0 comments on commit 36faad3

Please sign in to comment.