From: Ian Jackson Date: Fri, 21 May 2021 19:10:06 +0000 (+0100) Subject: apitest: Rework OtterArgsSpec trait slightly X-Git-Tag: otter-0.6.0~94 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6c4b14a8094089a2bc1fc6b42abaf5f81f4ffc0a;p=otter.git apitest: Rework OtterArgsSpec trait slightly Signed-off-by: Ian Jackson --- 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 {