From e7d7fe6740a0f66085f6069c2f7b570ca25de743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20R=C3=A9veillon?= Date: Mon, 22 Nov 2021 09:23:46 +0100 Subject: [PATCH] fmt second pass --- src/vlm.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/vlm.rs b/src/vlm.rs index f886289..cce7b28 100644 --- a/src/vlm.rs +++ b/src/vlm.rs @@ -116,9 +116,10 @@ impl Vlm for Instance { let opts_c: Vec; let enabled = if enabled { 1 } else { 0 }; if let Some(vec) = options { - opts_c = vec.into_iter() - .map(|x| CString::new(x).expect("Error: Unexpected null byte")) - .collect(); + opts_c = vec + .into_iter() + .map(|x| CString::new(x).expect("Error: Unexpected null byte")) + .collect(); opts_c_ptr = opts_c.iter().map(|x| x.as_ptr()).collect(); } else { opts_c_ptr = Vec::new();