Skip to content

Commit 95f3a7d

Browse files
committed
tidy
1 parent aec806e commit 95f3a7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_query_system/src/query/plumbing.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,13 @@ enum QueryResult {
4545
}
4646

4747
impl QueryResult {
48-
4948
/// Unwraps the query job and if poisoned will raise a [`FatalError`]
5049
fn unwrap(self) -> QueryJob {
5150
match self {
5251
Self::Started(job) => job,
5352
Self::Poisoned => FatalError.raise(),
5453
}
5554
}
56-
5755
}
5856

5957
impl<K> QueryState<K>
@@ -200,7 +198,7 @@ where
200198
let job = {
201199
let mut shard = state.active.lock_shard_by_value(&self.key);
202200
let job = shard.remove(&self.key).unwrap().unwrap();
203-
201+
204202
shard.insert(self.key, QueryResult::Poisoned);
205203
job
206204
};

0 commit comments

Comments
 (0)