From: Ian Jackson Date: Sat, 15 May 2021 00:11:44 +0000 (+0100) Subject: bundles: Remove a not-needed layer of references X-Git-Tag: otter-0.6.0~300 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4a677534ea9fb43a5ac1174849e1eb786aa20d58;p=otter.git bundles: Remove a not-needed layer of references Signed-off-by: Ian Jackson --- diff --git a/daemon/cmdlistener.rs b/daemon/cmdlistener.rs index d4afb9f1..9f77f649 100644 --- a/daemon/cmdlistener.rs +++ b/daemon/cmdlistener.rs @@ -75,7 +75,7 @@ pub const TP_ACCESS_BUNDLES: &[TP] = &[ //#[throws(CSE)] fn execute_and_respond(cs: &mut CommandStreamData, cmd: MgmtCommand, - mut bulk_upload: ReadFrame, + bulk_upload: ReadFrame, for_response: &mut FrameWriter) -> Result<(), CSE> where R: Read, W: Write @@ -233,7 +233,7 @@ fn execute_and_respond(cs: &mut CommandStreamData, cmd: MgmtCommand, let upload = bundles.start_upload(ig, kind)?; (upload, auth) }; - let uploaded = upload.bulk(&mut bulk_upload, size, + let uploaded = upload.bulk(bulk_upload, size, &hash, &mut for_response)?; { let gref = Instance::lookup_by_name(&game, auth)?;