aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/db.rs6
-rw-r--r--src/main.rs2
-rw-r--r--src/table.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/db.rs b/src/db.rs
index 41ef85e..ae626a1 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -26,7 +26,7 @@ use std::path::Path;
static EXT: &str = ".xml.gz";
-type Result<T> = std::result::Result<T, Box<Error>>;
+type Result<T> = std::result::Result<T, Box<dyn Error>>;
/// Information about a part.
#[derive(Debug)]
@@ -117,7 +117,7 @@ impl<'a> PartInfo<'a> {
Some(signals_map) => signals_map.get(&name).unwrap_or(&SignalMap::AddF).clone(),
};
Ok(SignalInfo { name, map })
- };
+ }
fn parse_pin(gpios_info: &GpiosInfo, n: Node) -> Result<PinInfo> {
let name = attribute_or_error(&n, "Name")?;
let position = attribute_or_error(&n, "Position")?;
@@ -134,7 +134,7 @@ impl<'a> PartInfo<'a> {
position,
signals,
})
- };
+ }
let pins = doc_root
.children()
.filter(|n| n.has_tag_name("Pin"))
diff --git a/src/main.rs b/src/main.rs
index 3ac9d28..aba1831 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -50,7 +50,7 @@ enum OptCommand {
Table { part: String },
}
-fn main() -> Result<(), Box<Error>> {
+fn main() -> Result<(), Box<dyn Error>> {
let opt = Opt::from_args();
match opt.command {
OptCommand::Parts { pattern } => {
diff --git a/src/table.rs b/src/table.rs
index efdc23d..914f49e 100644
--- a/src/table.rs
+++ b/src/table.rs
@@ -25,7 +25,7 @@ use std::error::Error;
use std::io::Write;
use std::result::Result as StdResult;
-type Result<T> = StdResult<T, Box<Error>>;
+type Result<T> = StdResult<T, Box<dyn Error>>;
/// Filter signals to reduce pin out table size.
pub struct SignalFilter {