Skip to content

Commit 4025ed8

Browse files
committed
Remove stale persister edition note
The persister comment claimed the boxed future could be dropped after Rust 2024. That is not accurate on `rustc` 1.85 because precise captures are still unavailable for `impl Trait` in trait methods. Removing the note avoids pointing future work at an unsupported change. Co-Authored-By: HAL 9000
1 parent d271b2e commit 4025ed8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lightning/src/util/persist.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,9 +1410,6 @@ impl<
14101410
// completion of the write. This ensures monitor persistence ordering is preserved.
14111411
let primary = CHANNEL_MONITOR_PERSISTENCE_PRIMARY_NAMESPACE;
14121412
let secondary = CHANNEL_MONITOR_PERSISTENCE_SECONDARY_NAMESPACE;
1413-
// There's no real reason why this needs to be boxed, but dropping it rams into the "hidden
1414-
// type for impl... captures lifetime that does not appear in bounds" issue. This can
1415-
// trivially be dropped once we upgrade to edition 2024/MSRV 1.85.
14161413
Box::pin(self.kv_store.write(primary, secondary, monitor_key.as_str(), monitor_bytes))
14171414
}
14181415

0 commit comments

Comments
 (0)