Upgrade to rust 1.81.0 (#3797)

* Upgrade to rust 1.81.0

* Fix new clippy warnings upgrading to 1.81.0
This commit is contained in:
Jonathan Tran
2024-09-05 17:44:57 -04:00
committed by GitHub
parent ca4a442cce
commit 57e85d7fd0
3 changed files with 3 additions and 3 deletions

View File

@ -488,7 +488,7 @@ layout: manual
buf.push_str(&fn_docs);
// Write the file.
expectorate::assert_contents(&format!("../../../docs/kcl/{}.md", internal_fn.name()), &buf);
expectorate::assert_contents(format!("../../../docs/kcl/{}.md", internal_fn.name()), &buf);
}
}

View File

@ -79,7 +79,7 @@ fn whitespace(i: &mut Located<&str>) -> PResult<Token> {
fn inner_word(i: &mut Located<&str>) -> PResult<()> {
one_of(('a'..='z', 'A'..='Z', '_')).parse_next(i)?;
repeat(0.., one_of(('a'..='z', 'A'..='Z', '0'..='9', '_'))).parse_next(i)?;
repeat::<_, _, (), _, _>(0.., one_of(('a'..='z', 'A'..='Z', '0'..='9', '_'))).parse_next(i)?;
Ok(())
}

View File

@ -1,3 +1,3 @@
[toolchain]
channel = "1.80.1"
channel = "1.81.0"
components = ["clippy", "rustfmt"]