aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ac45a35..ae2ed46 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -9,19 +9,17 @@ use tracing::Instrument;
pub mod ids;
pub mod models;
-pub use chrono;
-#[cfg(test)]
-mod tests;
+pub use chrono;
-const NOTION_API_VERSION: &str = "2021-08-16";
+const NOTION_API_VERSION: &str = "2022-02-22";
/// An wrapper Error type for all errors produced by the [`NotionApi`](NotionApi) client.
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("Invalid Notion API Token: {}", source)]
InvalidApiToken {
- source: reqwest::header::InvalidHeaderValue,
+ source: header::InvalidHeaderValue,
},
#[error("Unable to build reqwest HTTP client: {}", source)]