mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03:00
inspect -> is_some
This commit is contained in:
@@ -214,11 +214,11 @@ pub fn assert_ignored(&self) {
|
||||
}
|
||||
|
||||
pub fn assert_eval_always(&self) {
|
||||
self.data.as_ref().inspect(|_| {
|
||||
if self.data.is_some() {
|
||||
read_deps(|deps| {
|
||||
assert_matches!(deps, TaskDepsRef::EvalAlways, "expected eval always context")
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
pub fn with_ignore<OP, R>(&self, op: OP) -> R
|
||||
|
||||
Reference in New Issue
Block a user