Skip to content

Commit 113846c

Browse files
committed
trailing comma and minor cleanup
1 parent 400e752 commit 113846c

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

filetreelist/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// #![forbid(missing_docs)]
21
#![forbid(unsafe_code)]
32
#![deny(
43
mismatched_lifetime_syntaxes,

src/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ impl Environment {
138138
use crossbeam_channel::unbounded;
139139
Self {
140140
queue: Queue::new(),
141-
theme: Default::default(),
142-
key_config: Default::default(),
143-
repo: RefCell::new(RepoPath::Path(Default::default())),
141+
theme: Rc::default(),
142+
key_config: Rc::default(),
143+
repo: RefCell::new(RepoPath::Path(PathBuf::default())),
144144
options: Rc::new(RefCell::new(Options::test_env())),
145145
sender_git: unbounded().0,
146146
sender_app: unbounded().0,

src/components/status_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::{borrow::Cow, cell::Cell, path::Path};
2222

2323
//TODO: use new `filetreelist` crate
2424

25-
///
25+
/// Renders the working-tree status as a tree.
2626
#[allow(clippy::struct_excessive_bools)]
2727
pub struct StatusTreeComponent {
2828
title: String,

0 commit comments

Comments
 (0)