From 080e96d290a045917f27579cf41230fc2dddffbf Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Mon, 22 Jun 2020 22:55:27 +0200 Subject: [PATCH] =?UTF-8?q?respond=20to=20jorges=20reviw=E2=80=93=20use=20?= =?UTF-8?q?expect(unreachable)=20//=20reason?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/dk-run/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dk-run/src/main.rs b/tools/dk-run/src/main.rs index 005809a..32d46da 100644 --- a/tools/dk-run/src/main.rs +++ b/tools/dk-run/src/main.rs @@ -219,7 +219,7 @@ fn notmain() -> Result { } let channel = rtt_res - .unwrap() // using ? instead wouldn't show the user any helpful error message + .expect("unreachable") // this block is only executed when rtt was successfully attached before .up_channels() .take(0) .ok_or_else(|| anyhow!("RTT up channel 0 not found"))?;