From d81949c31b35dc49fb0b4872b59319c25b18ce82 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sun, 21 Nov 2021 21:58:16 -0600 Subject: [PATCH] Modules to hold error def and request/query def --- src/error.rs | 9 +++++++++ src/request.rs | 1 + 2 files changed, 10 insertions(+) create mode 100644 src/error.rs create mode 100644 src/request.rs diff --git a/src/error.rs b/src/error.rs new file mode 100644 index 0000000..537dfb7 --- /dev/null +++ b/src/error.rs @@ -0,0 +1,9 @@ +//! Error handling. + +use std::result; +use thiserror::Error; + +pub type Result = result::Result; + +#[derive(Error, Debug)] +pub enum Error {} diff --git a/src/request.rs b/src/request.rs new file mode 100644 index 0000000..8798ca2 --- /dev/null +++ b/src/request.rs @@ -0,0 +1 @@ +pub struct Request {}