mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 21:02:37 +00:00
chore: Upgrade Rust to 1.67.0 (#3125)
This commit is contained in:
parent
ed33b75bad
commit
ffd8e958fc
7 changed files with 7 additions and 8 deletions
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(&['/', '\\'][..], "__")
|
||||
));
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
1.65.0
|
||||
1.67.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue