Skip to content

Commit

Permalink
More windows build tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Jan 27, 2023
1 parent 8e0cb74 commit ed822db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/addr2line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extern crate typed_arena;
use std::borrow::Cow;
use std::fs::File;
use std::io::{BufRead, Lines, StdinLock, Write};
use std::path::{Path, PathBuf};
use std::path::Path;

use clap::{Arg, Command, Values};
use fallible_iterator::FallibleIterator;
Expand Down Expand Up @@ -208,7 +208,7 @@ fn main() {
|data, endian| {
gimli::EndianSlice::new(arena_data.alloc(Cow::Owned(data.into_owned())), endian)
},
Some(PathBuf::from(path)),
Some(std::path::PathBuf::from(path)),
);
let ctx = Context::from_dwarf(dwarf).unwrap();

Expand Down Expand Up @@ -240,7 +240,7 @@ fn main() {
#[cfg(unix)]
let frames = split_dwarf_loader.run(frames).unwrap();
#[cfg(not(unix))]
let frames = frames.skip_all_loads();
let frames = frames.skip_all_loads().unwrap();
let mut frames = frames.enumerate();
while let Some((i, frame)) = frames.next().unwrap() {
if pretty && i != 0 {
Expand Down

0 comments on commit ed822db

Please sign in to comment.