Skip to content

Commit be34884

Browse files
authored
Merge pull request #745 from clubby789/func-cast
Fix `function_casts_as_integer` failures
2 parents f2bcf65 + 8d82870 commit be34884

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)