Closed mahkoh closed 3 years ago
warning: unused borrow that must be used --> /home/julian/.cargo/registry/src/github.com-1ecc6299db9ec823/nameof-1.2.1/src/lib.rs:86:13 | 82 | / macro_rules! name_of { 83 | | // Covers Bindings 84 | | ($n: ident) => {{ 85 | | let _ = || { 86 | | &$n; | | ^^^ the borrow produces a value ... | 110 | | }}; 111 | | } | |_- in this expansion of `name_of!` | ::: src/keyboard.rs:202:45 | 202 | debug_tuple = f.debug_tuple(name_of!(XkbSym)); | ---------------- in this macro invocation
I just merged a PR by @EnoughTea (https://github.com/SilentByte/nameof/pull/8) that addresses this and published a new version. This should be fixed now.