Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dbs-utils: Fix clippy issues caused by rust 1.68.2
Obtaining reference of unaligned fields is being phased out. Therefore, `&struct.field` is replaced with `std::ptr::addr_of!(struct.field)` to avoid those warning issues. For more details, please refer to rust-lang/rust#82523. Fixes: openanolis#273 Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
- Loading branch information