From 6c4b14a8094089a2bc1fc6b42abaf5f81f4ffc0a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 21 May 2021 20:10:06 +0100 Subject: [PATCH] apitest: Rework OtterArgsSpec trait slightly Signed-off-by: Ian Jackson --- apitest/apitest.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apitest/apitest.rs b/apitest/apitest.rs index c327ee18..dea84a08 100644 --- a/apitest/apitest.rs +++ b/apitest/apitest.rs @@ -751,9 +751,7 @@ impl OtterArgsSpec for [S] where for <'s> &'s S: Into { } } impl OtterArgsSpec for Vec where for <'s> &'s S: Into { - fn to_args(&self) -> Vec { - self.iter().map(|s| s.into()).collect() - } + fn to_args(&self) -> Vec { self.as_slice().to_args() } } impl DirSubst { -- 2.30.2