Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpasmantier committed Oct 13, 2024
1 parent e5f1ebc commit 9b0bce9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion crates/television/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
/// └──────────────────────────────────────────────────────────────────────────────────────────────────────┘
use std::sync::Arc;


use color_eyre::Result;
use serde::{Deserialize, Serialize};
use tokio::sync::{mpsc, Mutex};
Expand Down
4 changes: 1 addition & 3 deletions crates/television/channels/grep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ use crate::entry::Entry;
use crate::fuzzy::MATCHER;
use crate::previewers::PreviewType;
use crate::utils::{
files::{
is_not_text, is_valid_utf8, walk_builder, DEFAULT_NUM_THREADS,
},
files::{is_not_text, is_valid_utf8, walk_builder, DEFAULT_NUM_THREADS},
strings::preprocess_line,
};

Expand Down
4 changes: 2 additions & 2 deletions crates/television/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ mod fuzzy;
mod logging;
mod previewers;
mod render;
mod tui;
mod utils;
pub mod television;
mod tui;
mod ui;
mod utils;

#[tokio::main(flavor = "multi_thread")]
async fn main() -> Result<()> {
Expand Down
4 changes: 1 addition & 3 deletions crates/television/previewers/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ use crate::entry;
use crate::previewers::{Preview, PreviewContent};
use crate::utils::files::is_valid_utf8;
use crate::utils::files::FileType;
use crate::utils::files::{
get_file_size, is_known_text_extension,
};
use crate::utils::files::{get_file_size, is_known_text_extension};
use crate::utils::strings::preprocess_line;

use super::cache::PreviewCache;
Expand Down
5 changes: 1 addition & 4 deletions crates/television/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ use tokio::{
};

use crate::television::Television;
use crate::{
action::Action, config::Config,
tui::Tui,
};
use crate::{action::Action, config::Config, tui::Tui};

#[derive(Debug)]
pub enum RenderingTask {
Expand Down
1 change: 0 additions & 1 deletion crates/television_derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use proc_macro::TokenStream;
use quote::quote;


#[proc_macro_derive(CliChannel)]
pub fn cli_channel_derive(input: TokenStream) -> TokenStream {
// Construct a representation of Rust code as a syntax tree
Expand Down

0 comments on commit 9b0bce9

Please sign in to comment.