From 0251221c6999b5c23a96c237c6964b8ab51faca7 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Mon, 3 Mar 2025 21:32:59 -0600 Subject: [PATCH] Fix the typo checking CI (#3824) --- packages/autofmt/src/indent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/autofmt/src/indent.rs b/packages/autofmt/src/indent.rs index f7d514865..3e58b4ca5 100644 --- a/packages/autofmt/src/indent.rs +++ b/packages/autofmt/src/indent.rs @@ -12,11 +12,11 @@ pub struct IndentOptions { } impl IndentOptions { - pub fn new(typ: IndentType, width: usize, split_line_attributes: bool) -> Self { + pub fn new(ty: IndentType, width: usize, split_line_attributes: bool) -> Self { assert_ne!(width, 0, "Cannot have an indent width of 0"); Self { width, - indent_string: match typ { + indent_string: match ty { IndentType::Tabs => "\t".into(), IndentType::Spaces => " ".repeat(width), },