aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/body.rs
diff options
context:
space:
mode:
authorBrandon <[email protected]>2021-03-17 06:31:14 +0000
committerBrandon <[email protected]>2021-03-17 06:31:14 +0000
commita79b5673e8f5d1f8d569bc7c984a293a972a7bb0 (patch)
tree61eb44cada0b64cd0fbf137bb2cc5f2600755330 /crates/hir_def/src/body.rs
parent0103f5df8fff2ccdbfb03adfe432b69c7840cf42 (diff)
Follow established ErrorEmitted pattern
Diffstat (limited to 'crates/hir_def/src/body.rs')
-rw-r--r--crates/hir_def/src/body.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/hir_def/src/body.rs b/crates/hir_def/src/body.rs
index d2dcd6727..1080d9c2c 100644
--- a/crates/hir_def/src/body.rs
+++ b/crates/hir_def/src/body.rs
@@ -121,11 +121,8 @@ impl Expander {
121 err.get_or_insert(e); 121 err.get_or_insert(e);
122 })?; 122 })?;
123 let call_id = match call_id { 123 let call_id = match call_id {
124 Some(it) => it, 124 Ok(it) => it,
125 None => { 125 Err(_) => {
126 if err.is_none() {
127 log::warn!("no error despite `as_call_id_with_errors` returning `None`");
128 }
129 return Ok(ExpandResult { value: None, err }); 126 return Ok(ExpandResult { value: None, err });
130 } 127 }
131 }; 128 };