chore: Do not use expect

--- don't change below this line ---
ENG-4063 Took 57 minutes


Took 17 seconds

Took 45 seconds
This commit is contained in:
Diana Carvalho
2025-01-21 10:07:16 +00:00
parent 7890f26812
commit 979cdf7437
6 changed files with 40 additions and 34 deletions

View File

@@ -1,16 +1,6 @@
use std::{env, str::FromStr};
use lazy_static::lazy_static;
use num_bigint::BigUint;
use tycho_core::{dto::ProtocolComponent, Bytes};
lazy_static! {
pub static ref PROPELLER_ROUTER_ADDRESS: Bytes = Bytes::from_str(
&env::var("ROUTER_ADDRESS").expect("Missing ROUTER_ADDRESS in environment"),
)
.expect("Invalid ROUTER_ADDRESS");
}
#[derive(Clone)]
#[allow(dead_code)]
pub struct Solution {