chore: Upgrade Rust to 1.67.0 (#3125)

This commit is contained in:
Micha Reiser 2023-02-22 16:03:17 +01:00 committed by GitHub
parent ed33b75bad
commit ffd8e958fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 8 deletions

View file

@ -3,7 +3,7 @@ members = ["crates/*"]
[workspace.package]
edition = "2021"
rust-version = "1.65.0"
rust-version = "1.67.0"
[workspace.dependencies]
anyhow = { version = "1.0.66" }

View file

@ -333,7 +333,7 @@ impl std::fmt::Debug for StaticTextSlice {
}
fn debug_assert_no_newlines(text: &str) {
debug_assert!(!text.contains('\r'), "The content '{}' contains an unsupported '\\r' line terminator character but text must only use line feeds '\\n' as line separator. Use '\\n' instead of '\\r' and '\\r\\n' to insert a line break in strings.", text);
debug_assert!(!text.contains('\r'), "The content '{text}' contains an unsupported '\\r' line terminator character but text must only use line feeds '\\n' as line separator. Use '\\n' instead of '\\r' and '\\r\\n' to insert a line break in strings.");
}
/// Pushes some content to the end of the current line

View file

@ -101,7 +101,7 @@ impl std::fmt::Display for IndentStyle {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
IndentStyle::Tab => std::write!(f, "Tab"),
IndentStyle::Space(size) => std::write!(f, "Spaces, size: {}", size),
IndentStyle::Space(size) => std::write!(f, "Spaces, size: {size}"),
}
}
}

View file

@ -103,7 +103,7 @@ mod tests {
let snapshot_path = Path::new(&workspace_path)
.join("src/snapshots")
.join(&format!(
.join(format!(
"{module_path}__{}.snap",
snapshot_name.replace(&['/', '\\'][..], "__")
));

View file

@ -757,7 +757,7 @@ pub struct TriviaIndex {
pub withitem: FxHashMap<usize, Vec<Trivia>>,
}
fn add_comment<'a>(comment: Trivia, node: &Node<'a>, trivia: &mut TriviaIndex) {
fn add_comment(comment: Trivia, node: &Node, trivia: &mut TriviaIndex) {
match node {
Node::Mod(_) => {}
Node::Stmt(node) => {

View file

@ -39,8 +39,7 @@ impl<'de> Deserialize<'de> for TextRange {
let (start, end) = Deserialize::deserialize(deserializer)?;
if !(start <= end) {
return Err(de::Error::custom(format!(
"invalid range: {:?}..{:?}",
start, end
"invalid range: {start:?}..{end:?}"
)));
}
Ok(TextRange::new(start, end))

View file

@ -1 +1 @@
1.65.0
1.67.0