chiark / gitweb /
fastsplit: Move a comment to its right place
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 11:05:12 +0000 (12:05 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 14:15:30 +0000 (15:15 +0100)
Some time in the development of this, pre-squash, kthe modperm was
acquired within the infallible closure.  But when it was moved,
evidently the comment didn't move with it.  Fix that.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/fastsplit.rs

index 2c084fdd9d6903060a5c9a6ff08ee8a7e0358b86..9628134993e97e2c473d2106608d0278d4317ae6 100644 (file)
@@ -91,6 +91,9 @@ impl InstanceGuard<'_> {
                   &mut GPiece)
                   -> Result<UpdateFromOpComplex, ApiPieceOpError>
   {
+    // All this complicated machinery exists precisely to let us make
+    // pieces without having to save aux.
+    //
     // The "save later" part of this ought to be unnecessarily, because
     // we'll be running in piece API context which already does that.
     // But it is clearer to call the appropriate function.
@@ -138,9 +141,6 @@ impl InstanceGuard<'_> {
     )?;
 
     (||{
-      // All this complicated machinery exists precisely to let us make
-      // pieces without having to save aux.
-
       let nipc = IFastSplits::make_ipc(&mut ig.ioccults.ilks,
                                        fs_record.ipc.clone());
       let npiece = ig.gs.pieces.as_mut(modperm).insert(ngpc);