Skip to content

Commit

Permalink
refactor: move imports into the module
Browse files Browse the repository at this point in the history
  • Loading branch information
norskeld committed Nov 19, 2024
1 parent 4f768c6 commit fd18801
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/actions/prompts.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
use std::fmt::Display;
use std::process;

use crossterm::style::Stylize;
use inquire::formatter::StringFormatter;
use inquire::ui::{Color, RenderConfig, StyleSheet, Styled};
use inquire::{Confirm, CustomType, Editor, InquireError, Select, Text};
use inquire::{Confirm, CustomType, Editor, Select, Text};

use crate::actions::State;
use crate::config::prompts::*;
use crate::config::{Number, Value};

/// Helper module holding useful functions.
mod helpers {
use super::*;
use std::fmt::Display;
use std::process;

use crossterm::style::Stylize;
use inquire::formatter::StringFormatter;
use inquire::ui::{Color, RenderConfig, StyleSheet, Styled};
use inquire::InquireError;

/// Returns configured theme.
pub fn theme<'r>() -> RenderConfig<'r> {
Expand Down

0 comments on commit fd18801

Please sign in to comment.