Skip to content

Commit dfb10b1

Browse files
committed
Fix warning about unused import
1 parent a0e833c commit dfb10b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generate/device.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::path::Path;
99

1010
use crate::config::{Config, Target};
1111
use crate::util::{self, ident};
12-
use anyhow::{anyhow, Context, Result};
12+
use anyhow::{Context, Result};
1313

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

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

0 commit comments

Comments
 (0)