From 4142ebca975a4eb30fce931718de31afae25c3d1 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 13 Mar 2024 05:37:53 -0400 Subject: [PATCH] remove unnecessary `Option` --- components/salsa-2022/src/tracked_struct.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/salsa-2022/src/tracked_struct.rs b/components/salsa-2022/src/tracked_struct.rs index ac0b39c2..df131e63 100644 --- a/components/salsa-2022/src/tracked_struct.rs +++ b/components/salsa-2022/src/tracked_struct.rs @@ -50,7 +50,7 @@ where #[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Copy, Clone)] struct TrackedStructKey { - query_key: Option, + query_key: DatabaseKeyIndex, disambiguator: Disambiguator, data: Data, } @@ -86,7 +86,7 @@ where data_hash, ); let entity_key = TrackedStructKey { - query_key: Some(query_key), + query_key, disambiguator, data, };