mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-25 23:23:11 +00:00
feat: add restriction clippy lints
This commit is contained in:
@@ -40,6 +40,10 @@ impl SequencerHandle {
|
||||
/// Runs the sequencer indefinitely, monitoring its tasks.
|
||||
///
|
||||
/// If no error occurs, this function will never return.
|
||||
#[expect(
|
||||
clippy::integer_division_remainder_used,
|
||||
reason = "Generated by select! macro, can't be easily rewritten to avoid this lint"
|
||||
)]
|
||||
pub async fn run_forever(&mut self) -> Result<Never> {
|
||||
let Self {
|
||||
addr: _,
|
||||
@@ -292,9 +296,10 @@ pub async fn main_runner() -> Result<()> {
|
||||
|
||||
let app_config = SequencerConfig::from_path(&home_dir.join("sequencer_config.json"))?;
|
||||
|
||||
if let Some(ref rust_log) = app_config.override_rust_log {
|
||||
if let Some(rust_log) = &app_config.override_rust_log {
|
||||
info!("RUST_LOG env var set to {rust_log:?}");
|
||||
|
||||
// SAFETY: there is no other threads running at this point
|
||||
unsafe {
|
||||
std::env::set_var(RUST_LOG, rust_log);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user