Skip to content

Commit ffd8e95

Browse files
author
Micha Reiser
authored
chore: Upgrade Rust to 1.67.0 (#3125)
1 parent ed33b75 commit ffd8e95

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33

44
[workspace.package]
55
edition = "2021"
6-
rust-version = "1.65.0"
6+
rust-version = "1.67.0"
77

88
[workspace.dependencies]
99
anyhow = { version = "1.0.66" }

crates/ruff_formatter/src/builders.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl std::fmt::Debug for StaticTextSlice {
333333
}
334334

335335
fn debug_assert_no_newlines(text: &str) {
336-
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);
336+
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.");
337337
}
338338

339339
/// Pushes some content to the end of the current line

crates/ruff_formatter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl std::fmt::Display for IndentStyle {
101101
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
102102
match self {
103103
IndentStyle::Tab => std::write!(f, "Tab"),
104-
IndentStyle::Space(size) => std::write!(f, "Spaces, size: {}", size),
104+
IndentStyle::Space(size) => std::write!(f, "Spaces, size: {size}"),
105105
}
106106
}
107107
}

crates/ruff_python_formatter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ mod tests {
103103

104104
let snapshot_path = Path::new(&workspace_path)
105105
.join("src/snapshots")
106-
.join(&format!(
106+
.join(format!(
107107
"{module_path}__{}.snap",
108108
snapshot_name.replace(&['/', '\\'][..], "__")
109109
));

crates/ruff_python_formatter/src/trivia.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ pub struct TriviaIndex {
757757
pub withitem: FxHashMap<usize, Vec<Trivia>>,
758758
}
759759

760-
fn add_comment<'a>(comment: Trivia, node: &Node<'a>, trivia: &mut TriviaIndex) {
760+
fn add_comment(comment: Trivia, node: &Node, trivia: &mut TriviaIndex) {
761761
match node {
762762
Node::Mod(_) => {}
763763
Node::Stmt(node) => {

crates/ruff_text_size/src/serde_impls.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ impl<'de> Deserialize<'de> for TextRange {
3939
let (start, end) = Deserialize::deserialize(deserializer)?;
4040
if !(start <= end) {
4141
return Err(de::Error::custom(format!(
42-
"invalid range: {:?}..{:?}",
43-
start, end
42+
"invalid range: {start:?}..{end:?}"
4443
)));
4544
}
4645
Ok(TextRange::new(start, end))

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.65.0
1+
1.67.0

0 commit comments

Comments
 (0)