Skip to content

Commit

Permalink
fix clippy slow_vector_initialization
Browse files Browse the repository at this point in the history
Should be smaller codegen size
  • Loading branch information
klensy committed May 4, 2024
1 parent e151306 commit aa95934
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dbghelp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,7 @@ pub fn init() -> Result<Init, ()> {
//
// See https://learn.microsoft.com/cpp/build/reference/pdbpath for an
// example of where symbols are usually searched for.
let mut search_path_buf = Vec::new();
search_path_buf.resize(1024, 0);
let mut search_path_buf = vec![0; 1024];

// Prefill the buffer with the current search path.
if DBGHELP.SymGetSearchPathW().unwrap()(
Expand Down

0 comments on commit aa95934

Please sign in to comment.