mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +00:00
fix(filemeta): satisfy clippy::field_reassign_with_default in replication_info_equals test (#4335)
fix(filemeta): use struct-init to satisfy clippy::field_reassign_with_default The replication_info_equals test constructed FileInfo via `let mut x = FileInfo::default()` followed by field reassignment, which clippy::field_reassign_with_default (deny-by-default under -D warnings) rejects on the lib-test target, breaking `Test and Lint` CI on every PR. Rewrite the three constructions using struct-init + ..Default::default(). Test-only change; behavior unchanged.
This commit is contained in: