Skip to content

Commit

Permalink
style: fix fmt lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
7sDream committed Sep 22, 2024
1 parent 2e10078 commit c9e578c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = "Two"
edition = "2021"
style_edition = "2024"
unstable_features = true

comment_width = 100
Expand Down
2 changes: 1 addition & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
use std::path::PathBuf;

use clap::{
builder::{NonEmptyStringValueParser, TypedValueParser},
Parser,
builder::{NonEmptyStringValueParser, TypedValueParser},
};

use super::one_char::OneChar;
Expand Down
4 changes: 2 additions & 2 deletions src/loader/cmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

use ttf_parser::{cmap, GlyphId, RawFace};
use ttf_parser::{GlyphId, RawFace, cmap};

use super::{
error::{BROKEN_CMAP_TABLE, CMAP_TAG, MISSING_CMAP_TABLE},
Result,
error::{BROKEN_CMAP_TABLE, CMAP_TAG, MISSING_CMAP_TABLE},
};

pub struct CMapTable<'a> {
Expand Down
4 changes: 2 additions & 2 deletions src/loader/face_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ use std::{borrow::Cow, path::Path};

use fontdb::Source;
use ttf_parser::{
name::{name_id, Table as NameTable},
Language, RawFace,
name::{Table as NameTable, name_id},
};

use super::{
Error, Result,
cmap::CMapTable,
error::{BROKEN_NAME_TABLE, MISSING_NAME_TABLE, NAME_TAG},
Error, Result,
};
use crate::loader::database;

Expand Down
2 changes: 1 addition & 1 deletion src/preview/browser/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use std::{
cell::RefCell,
io::{Error as IOError, ErrorKind as IOErrorKind, Read, Write},
net::{Ipv4Addr, SocketAddr, TcpListener, TcpStream},
sync::mpsc::{channel, Receiver, Sender, TryRecvError},
sync::mpsc::{Receiver, Sender, TryRecvError, channel},
thread,
time::Duration,
};
Expand Down
4 changes: 2 additions & 2 deletions src/preview/terminal/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ use std::{
use crossterm::{
event::{Event, KeyCode as CtKeyCode, KeyEvent, KeyModifiers as CtKM},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
terminal::{EnterAlternateScreen, LeaveAlternateScreen, disable_raw_mode, enable_raw_mode},
};
use ratatui::{
backend::CrosstermBackend,
layout::{Alignment, Constraint, Direction, Layout, Rect},
style::{Color, Modifier, Style},
terminal::{Frame, Terminal},
text::{Line, Span, Text},
widgets::{canvas::Canvas, Block, Borders, List, ListItem, Paragraph},
widgets::{Block, Borders, List, ListItem, Paragraph, canvas::Canvas},
};
use tui_input::backend::crossterm::EventHandler;

Expand Down
2 changes: 1 addition & 1 deletion src/preview/terminal/ui/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use std::{

use ratatui::widgets::ListState;

use super::cache::{CacheKey, GlyphCache, GlyphCanvasShape, RenderType, CHAR_RENDERS, MONO_RENDER};
use super::cache::{CHAR_RENDERS, CacheKey, GlyphCache, GlyphCanvasShape, MONO_RENDER, RenderType};
use crate::{
family::FilteredFamilies,
loader::{self, FaceInfo},
Expand Down

0 comments on commit c9e578c

Please sign in to comment.