From 95fb39715f526acbb81fc190a5cc0abbd05dab56 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 7 Apr 2022 10:35:27 -0400 Subject: [PATCH] use slice for option_vec_printer --- src/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.rs b/src/misc.rs index 6c0335f..7e03869 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -300,7 +300,7 @@ fn newtons_method( } /// Inputs `Vec>` and outputs a `String` containing a pretty representation of the Vector -pub fn option_vec_printer(data: &Vec>) -> String +pub fn option_vec_printer(data: &[Option]) -> String where T: ToString, {