diff options
| author | sigoden <sigoden@gmail.com> | 2023-03-09 08:11:38 +0800 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2023-03-09 08:15:14 +0800 |
| commit | e78b5f7c58fa3b6dff71042da2bbf6003c78184d (patch) | |
| tree | 6cd92751a565e6e5ddc1907171a67326037cea13 /src/main.rs | |
| parent | 1ec451da896f930829d8908da81e416d891f9aa5 (diff) | |
| download | aichat-e78b5f7c58fa3b6dff71042da2bbf6003c78184d.tar.gz | |
refactor: imports order and group
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs index a6662e7..cc61790 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,21 +7,20 @@ mod term; #[macro_use] mod utils; -use std::io::{stdin, Read}; -use std::sync::Arc; -use std::{io::stdout, process::exit}; +use crate::cli::Cli; +use crate::client::ChatGptClient; +use crate::config::{Config, SharedConfig}; -use cli::Cli; -use client::ChatGptClient; -use config::{Config, SharedConfig}; +use anyhow::{anyhow, Result}; +use clap::Parser; use crossbeam::sync::WaitGroup; use is_terminal::IsTerminal; use parking_lot::Mutex; - -use anyhow::{anyhow, Result}; -use clap::Parser; use render::{render_stream, MarkdownRender}; use repl::{AbortSignal, Repl}; +use std::io::{stdin, Read}; +use std::sync::Arc; +use std::{io::stdout, process::exit}; fn main() -> Result<()> { let cli = Cli::parse(); |
