Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sbihel committed Jan 2, 2024
1 parent f0b5765 commit 460d4c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion router/src/components/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ pub fn AnimatedRoutes(

pub(crate) struct Branches;

type BranchesCacheKey = (usize, Cow<'static, str>);
thread_local! {
static BRANCHES: RefCell<HashMap<(usize, Cow<'static, str>), Vec<Branch>>> = RefCell::new(HashMap::new());
static BRANCHES: RefCell<HashMap<BranchesCacheKey, Vec<Branch>>> = RefCell::new(HashMap::new());
}

impl Branches {
Expand Down

0 comments on commit 460d4c3

Please sign in to comment.