Skip to content

Commit 0e3d9ce

Browse files
mikolalysenkoclaude
andcommitted
Satisfy clippy in the Composer lock splice
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent fb22dfa commit 0e3d9ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/socket-patch-core/src/vendor/composer_lock

‎crates/socket-patch-core/src/vendor/composer_lock/lock_text.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn entry_span(text: &str, section: &str, index: usize) -> Option<(usize, usize)>
9393
/// 4), else the lock's first indent.
9494
fn indent_unit(text: &str, base: &str) -> String {
9595
let half = base.len() / 2;
96-
if half > 0 && base.len() % 2 == 0 && base[..half] == base[half..] {
96+
if half > 0 && base.len().is_multiple_of(2) && base[..half] == base[half..] {
9797
base[..half].to_string()
9898
} else {
9999
detect_indent(text)

0 commit comments

Comments
 (0)