Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jul 26, 2024
1 parent 399b20d commit c75710a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use backtrace::Backtrace;
use serde_derive::Serialize;
use std::error::Error;
use std::fmt::Write as FmtWrite;
use std::mem;
use std::{env, fs::File, io::Write, path::Path, path::PathBuf};
use uuid::Uuid;

Expand Down Expand Up @@ -51,7 +50,7 @@ impl Report {
const SKIP_FRAMES_NUM: usize = 8;
//We take padding for address and extra two letters
//to pad after index.
const HEX_WIDTH: usize = mem::size_of::<usize>() + 2;
const HEX_WIDTH: usize = size_of::<usize>() + 2;

Check failure

Code scanning / clippy

cannot find function size_of in this scope Error

cannot find function size\_of in this scope

Check failure

Code scanning / clippy

cannot find function size_of in this scope Error

cannot find function size\_of in this scope
//Padding for next lines after frame's address
const NEXT_SYMBOL_PADDING: usize = HEX_WIDTH + 6;

Expand Down

0 comments on commit c75710a

Please sign in to comment.