Skip to content

Commit 8d38bd1

Browse files
author
Stephan Dilly
committed
clippy
1 parent f91873d commit 8d38bd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/filetree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl FileTreeComponent {
8888
}
8989

9090
///
91-
pub fn file_count(&self) -> usize {
91+
pub const fn file_count(&self) -> usize {
9292
self.tree.tree.file_count()
9393
}
9494

src/components/utils/filetree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl FileTreeItems {
182182
}
183183

184184
///
185-
pub fn file_count(&self) -> usize {
185+
pub const fn file_count(&self) -> usize {
186186
self.file_count
187187
}
188188

0 commit comments

Comments
 (0)