Fix the typo checking CI (#3824)
This commit is contained in:
1 parent
9361c3ecd9
commit
0251221c69
1 file changed
+2
-2
@@ -12,11 +12,11 @@ pub struct IndentOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl 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");
|
assert_ne!(width, 0, "Cannot have an indent width of 0");
|
||||||
Self {
|
Self {
|
||||||
width,
|
width,
|
||||||
indent_string: match typ {
|
indent_string: match ty {
|
||||||
IndentType::Tabs => "\t".into(),
|
IndentType::Tabs => "\t".into(),
|
||||||
IndentType::Spaces => " ".repeat(width),
|
IndentType::Spaces => " ".repeat(width),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user