From cb68361316cd6957aca9cab20bf3aa9149259ad6 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 1 Aug 2017 12:47:47 +0300 Subject: [PATCH] Make variables immutable where mut is not required --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77742c1..8664b38 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ communicate with their endpoints: extern crate libusb; fn main() { - let mut context = libusb::Context::new().unwrap(); + let context = libusb::Context::new().unwrap(); - for mut device in context.devices().unwrap().iter() { + for device in context.devices().unwrap().iter() { let device_desc = device.device_descriptor().unwrap(); println!("Bus {:03} Device {:03} ID {:04x}:{:04x}",