mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2026-10-22 22:57:36 -06:00
clippy
This commit is contained in:
1 parent
49c11978d5
commit
cc31cb4711
20 files changed
+182
-197
No files matched your search
@@ -228,6 +228,12 @@ pub mod fs {
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct Entries([[u8; MAX_ENTRY_NAME_LEN]; MAX_ENTRIES]);
|
||||
|
||||
impl Default for Entries {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Entries {
|
||||
pub fn new() -> Self {
|
||||
Self([[0; MAX_ENTRY_NAME_LEN]; MAX_ENTRIES])
|
||||
|
||||
Reference in new issue
Block a user