Skip to content

Commit 8d82870

Browse files
committed
Fix function_casts_as_integer failures
1 parent 9d2c34e commit 8d82870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/capture.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl Backtrace {
256256
/// enabled, and the `std` feature is enabled by default.
257257
#[inline(never)] // want to make sure there's a frame here to remove
258258
pub fn new() -> Backtrace {
259-
let mut bt = Self::create(Self::new as usize);
259+
let mut bt = Self::create(Self::new as *const () as usize);
260260
bt.resolve();
261261
bt
262262
}
@@ -286,7 +286,7 @@ impl Backtrace {
286286
/// enabled, and the `std` feature is enabled by default.
287287
#[inline(never)] // want to make sure there's a frame here to remove
288288
pub fn new_unresolved() -> Backtrace {
289-
Self::create(Self::new_unresolved as usize)
289+
Self::create(Self::new_unresolved as *const () as usize)
290290
}
291291

292292
fn create(ip: usize) -> Backtrace {

0 commit comments

Comments
 (0)