cultmesh-rs: connect() takes a server over any snapshot source

The previous commit's tests did not compile: connect() was typed to the
default Source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-30 16:20:22 +02:00
commit d9d4b32ded

View file

@ -241,8 +241,8 @@ fn client_on(
})
}
fn connect(
server: &mut Server,
fn connect<Q: CultMeshRudpSnapshotSource>(
server: &mut CultMeshRudpDocumentServer<Sink, Q, Clock>,
clients: &mut [&mut CultNetRudpSocketTransportConnection],
) -> Result<()> {
for client in &mut *clients {