Skip to content

Commit

Permalink
fix new rust warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst committed Jun 14, 2024
1 parent f126f7a commit e3b8e92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion filetreelist/src/filetree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{
error::Result, filetreeitems::FileTreeItems,
tree_iter::TreeIterator, TreeItemInfo,
};
use std::{collections::BTreeSet, path::Path, usize};
use std::{collections::BTreeSet, path::Path};

///
#[derive(Copy, Clone, Debug)]
Expand Down
1 change: 0 additions & 1 deletion filetreelist/src/filetreeitems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::{error::Result, treeitems_iter::TreeItemsIterator};
use std::{
collections::{BTreeSet, HashMap},
path::{Path, PathBuf},
usize,
};

///
Expand Down
8 changes: 4 additions & 4 deletions src/ui/reflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ impl<'a, 'b> WordWrapper<'a, 'b> {
symbols: &'b mut dyn Iterator<Item = StyledGrapheme<'a>>,
max_line_width: u16,
trim: bool,
) -> WordWrapper<'a, 'b> {
WordWrapper {
) -> Self {
Self {
symbols,
max_line_width,
current_line: vec![],
Expand Down Expand Up @@ -152,8 +152,8 @@ impl<'a, 'b> LineTruncator<'a, 'b> {
pub fn new(
symbols: &'b mut dyn Iterator<Item = StyledGrapheme<'a>>,
max_line_width: u16,
) -> LineTruncator<'a, 'b> {
LineTruncator {
) -> Self {
Self {
symbols,
max_line_width,
horizontal_offset: 0,
Expand Down

0 comments on commit e3b8e92

Please sign in to comment.