From 087cfa514c03ffb74600a922fcc0747578944059 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 20 Jan 2018 20:12:24 +0000 Subject: [PATCH] Use expect instead of ok_or().unwrap() in example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index de50d8a..8f8e3da 100644 --- a/README.md +++ a/README.md @@ -13,8 +13,7 @@ let devices = sonos::discover().unwrap(); let bedroom = devices.iter() .find(|d| d.name == "Bedroom") - .ok_or("Couldn't find bedroom") - .unwrap(); + .expect("Couldn't find bedroom"); let track = bedroom.track().unwrap(); let volume = bedroom.volume().unwrap(); -- rgit 0.1.3