mirror of
https://github.com/Noratrieb/mono-fmt.git
synced 2026-01-16 16:25:07 +01:00
clippy fixes
This commit is contained in:
parent
0e1dba694d
commit
0568135f3d
3 changed files with 6 additions and 6 deletions
|
|
@ -45,7 +45,7 @@ fn dont_move() {
|
|||
#[test]
|
||||
fn ptr_correct_addr() {
|
||||
static STATIC: u8 = 0;
|
||||
let addr = std::format!("{:p}", (&STATIC) as *const u8);
|
||||
let addr = std::format!("{:p}", std::ptr::addr_of!(STATIC));
|
||||
let fmt = format!("{:p}", &STATIC);
|
||||
|
||||
assert_eq!(addr, fmt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue