From 21f255db568835d3e9a899f06996433cb1822285 Mon Sep 17 00:00:00 2001 From: Joerg Herbel Date: Mon, 5 Aug 2024 17:57:57 +0200 Subject: [PATCH] Remove unnecessary borrow --- src/bin/scheduler/setup/general.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/scheduler/setup/general.rs b/src/bin/scheduler/setup/general.rs index 339f4931..084ebf54 100644 --- a/src/bin/scheduler/setup/general.rs +++ b/src/bin/scheduler/setup/general.rs @@ -122,7 +122,7 @@ fn setup_with_one_directory_per_user( return (surviving_plans, failures); } for (session, plans_in_session) in plans_by_sessions(plans) { - let user_target = &target.join(&session.id()); + let user_target = &target.join(session.id()); if let Err(e) = create_dir_all(user_target) { let error = anyhow!(e).context(format!( "Failed to create directory {} for session {}",