diff --git a/src/lib.rs b/src/lib.rs index f500a20..da3845b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,18 +7,7 @@ pub use todos::*; pub const API_BASE_URL: &str = "https://dummyjson.com"; +#[derive(Default)] pub struct DummyJsonClient { pub client: Client, } - -impl DummyJsonClient { - pub fn new() -> Self { - Self { client: Client::new() } - } -} - -impl Default for DummyJsonClient { - fn default() -> Self { - Self::new() - } -}