aboutsummaryrefslogtreecommitdiffstats
path: root/src/yaml.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/yaml.rs')
-rw-r--r--src/yaml.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/yaml.rs b/src/yaml.rs
index b7cecad..0acaf59 100644
--- a/src/yaml.rs
+++ b/src/yaml.rs
@@ -9,13 +9,6 @@ mod sql;
pub use sql::*;
-#[derive(thiserror::Error, Debug)]
-pub enum YamlError {
- #[error("SQL error")]
- Sqlite(#[from] rusqlite::Error),
-}
-
-
// TODO: Separate functions to get a list of YAML hashes, and insert hashes into
// the database.
pub fn extract(
@@ -23,7 +16,7 @@ pub fn extract(
tx: &rusqlite::Transaction,
table_name: &str,
table_columns: &HashMap<String, crate::sqlite::Zero>,
-) -> Result<(), YamlError> {
+) -> Result<(), crate::Error> {
match doc {
yaml::Yaml::Array(ref mut array) => {
for yaml_value in array {