diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-23 15:16:55 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-23 15:16:55 +0800 |
| commit | c1a50fbdddc5fad986f4b3b6310cc5167e68f87e (patch) | |
| tree | a7b8b62691a0eefdffd5e25f59941c12a70efb04 /crates/vcs_data/src/data/sheet.rs | |
| parent | be76a48b6b53756fe1ba2f2ddd44bc14c9eb35bb (diff) | |
Apply clippy suggestions
Diffstat (limited to 'crates/vcs_data/src/data/sheet.rs')
| -rw-r--r-- | crates/vcs_data/src/data/sheet.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/vcs_data/src/data/sheet.rs b/crates/vcs_data/src/data/sheet.rs index d706c43..891888a 100644 --- a/crates/vcs_data/src/data/sheet.rs +++ b/crates/vcs_data/src/data/sheet.rs @@ -207,7 +207,7 @@ impl<'a> Sheet<'a> { sheet_path, SheetMappingMetadata { id: virtual_file_id, - version: version, + version, }, ); return Ok(()); @@ -287,9 +287,7 @@ impl<'a> Sheet<'a> { } // Check if the sheet has a holder - let Some(holder) = self.holder() else { - return None; - }; + let holder = self.holder()?; // Check if the holder has edit rights to the virtual file match self @@ -331,7 +329,7 @@ impl<'a> Sheet<'a> { } // Add write count - if self.data.write_count > i32::MAX { + if self.data.write_count >= i32::MAX - 1 { self.data.write_count = 0; } SheetData::write_to(&self.data, self.sheet_path()).await |
