mirror of https://github.com/MedzikUser/imgurs
update
This commit is contained in:
parent
b8ba315654
commit
22e28497a7
|
@ -23,9 +23,6 @@ impl fmt::Debug for ImgurHandle {
|
||||||
impl ImgurHandle {
|
impl ImgurHandle {
|
||||||
pub fn new(client_id: String) -> Self {
|
pub fn new(client_id: String) -> Self {
|
||||||
let client = Client::new();
|
let client = Client::new();
|
||||||
ImgurHandle {
|
ImgurHandle { client_id, client }
|
||||||
client_id,
|
|
||||||
client,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,3 +2,5 @@ pub mod configuration;
|
||||||
pub mod delete_image;
|
pub mod delete_image;
|
||||||
pub mod rate_limit;
|
pub mod rate_limit;
|
||||||
pub mod upload_image;
|
pub mod upload_image;
|
||||||
|
|
||||||
|
pub use configuration::ImgurHandle;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use imgurs::api::configuration::ImgurHandle;
|
|
||||||
use imgurs::api::rate_limit::*;
|
use imgurs::api::rate_limit::*;
|
||||||
|
use imgurs::api::ImgurHandle;
|
||||||
|
|
||||||
use log::{error, info};
|
use log::{error, info};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
pub mod cli;
|
|
||||||
pub mod credits;
|
pub mod credits;
|
||||||
pub mod delete_image;
|
pub mod delete_image;
|
||||||
|
pub mod parse;
|
||||||
pub mod upload_image;
|
pub mod upload_image;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
mod cli;
|
mod cli;
|
||||||
mod config;
|
mod config;
|
||||||
|
|
||||||
use cli::cli::parse;
|
use cli::parse::parse;
|
||||||
|
|
||||||
use simple_logger::SimpleLogger;
|
use simple_logger::SimpleLogger;
|
||||||
|
|
||||||
use imgurs::api::configuration::ImgurHandle;
|
use imgurs::api::ImgurHandle;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
|
|
Loading…
Reference in New Issue