From a2dc79a5079d6286ebd148cf25a00e5dd013efdc Mon Sep 17 00:00:00 2001 From: Jake Swenson Date: Sun, 16 May 2021 22:09:23 -0700 Subject: chore: lots of little cleanup (#7) --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 7345ef9..c97ee48 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,13 +11,13 @@ const NOTION_API_VERSION: &'static str = "2021-05-13"; // todo: replace with proper snafu error pub type NotionApiClientError = Box; -trait Identifiable { +pub trait Identifiable { // There should only be one way to identify an object type Type; fn id(&self) -> &Self::Type; } -struct NotionApi { +pub struct NotionApi { client: Client, } @@ -112,7 +112,7 @@ mod tests { DatabaseQuery, FilterCondition, FilterProperty, FilterValue, NotionSearch, TextCondition, }; use crate::models::Object; - use crate::{Identifiable, NotionApi}; + use crate::NotionApi; fn test_token() -> String { let token = { -- cgit v1.2.3