Skip to content

Commit

Permalink
Fix warning about unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Oct 23, 2024
1 parent a0e833c commit dfb10b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::path::Path;

use crate::config::{Config, Target};
use crate::util::{self, ident};
use anyhow::{anyhow, Context, Result};
use anyhow::{Context, Result};

use crate::generate::{interrupt, peripheral, riscv};

Expand All @@ -36,7 +36,7 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
}
#[cfg(not(feature = "yaml"))]
Some(_) => {
return Err(anyhow!("Support for yaml config files is not available because svd2rust was compiled without the yaml feature"));
return Err(anyhow::anyhow!("Support for yaml config files is not available because svd2rust was compiled without the yaml feature"));
}
None => None,
};
Expand Down

0 comments on commit dfb10b1

Please sign in to comment.