From a37eddf9d702a5ef299e36c3605e8404f004f615 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 4 Apr 2021 18:43:50 +0100 Subject: [PATCH] apitest: Make setup_statuc_users not take a mut Signed-off-by: Ian Jackson --- apitest/apitest.rs | 2 +- apitest/at-otter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apitest/apitest.rs b/apitest/apitest.rs index fa3b3327..59e00a1b 100644 --- a/apitest/apitest.rs +++ b/apitest/apitest.rs @@ -725,7 +725,7 @@ pub struct StaticUserSetup { impl DirSubst { #[throws(AE)] - pub fn setup_static_users(&mut self, layout: PresentationLayout) + pub fn setup_static_users(&self, layout: PresentationLayout) -> Vec { #[throws(AE)] diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index e5ffb3da..dddfa050 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -641,7 +641,7 @@ fn tests(mut c: Ctx) { #[throws(AE)] fn main() { { - let (opts, _cln, _instance, mut su) = setup_core( + let (opts, _cln, _instance, su) = setup_core( &[module_path!()], &mut |_|false )?; -- 2.30.2