Skip to content

Commit

Permalink
Fix make check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mifom committed Apr 11, 2022
1 parent f8769de commit a45351b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/changes.rs
Expand Up @@ -90,7 +90,8 @@ impl ChangesComponent {
fn index_add_remove(&mut self) -> Result<bool> {
if let Some(tree_item) = self.selection() {
if self.is_working_dir {
if let FileTreeItemKind::File(i) = tree_item.kind {
if let FileTreeItemKind::File(ref i) = tree_item.kind
{
let new_path = Path::new(i.new_path.as_str());
let old_path = i
.old_path
Expand Down
4 changes: 2 additions & 2 deletions src/components/mod.rs
Expand Up @@ -139,8 +139,8 @@ macro_rules! draw_popups {
#[macro_export]
macro_rules! setup_popups {
($self:ident, [$($element:ident),+]) => {
crate::any_popup_visible!($self, [$($element),+]);
crate::draw_popups!($self, [ $($element),+ ]);
$crate::any_popup_visible!($self, [$($element),+]);
$crate::draw_popups!($self, [ $($element),+ ]);
};
}

Expand Down

0 comments on commit a45351b

Please sign in to comment.