From 8d38bd1862c33d8c61b5225b7a1aa0767f6c8c44 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Tue, 9 Jun 2020 17:49:56 +0200 Subject: [PATCH] clippy --- src/components/filetree.rs | 2 +- src/components/utils/filetree.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/filetree.rs b/src/components/filetree.rs index 8bba9d45..32e31d48 100644 --- a/src/components/filetree.rs +++ b/src/components/filetree.rs @@ -88,7 +88,7 @@ impl FileTreeComponent { } /// - pub fn file_count(&self) -> usize { + pub const fn file_count(&self) -> usize { self.tree.tree.file_count() } diff --git a/src/components/utils/filetree.rs b/src/components/utils/filetree.rs index 48c17fd2..15e4ec2e 100644 --- a/src/components/utils/filetree.rs +++ b/src/components/utils/filetree.rs @@ -182,7 +182,7 @@ impl FileTreeItems { } /// - pub fn file_count(&self) -> usize { + pub const fn file_count(&self) -> usize { self.file_count }