mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Use Rust 1.69 (#4065)
This commit is contained in:
parent
ba4f4f4672
commit
e33887718d
8 changed files with 12 additions and 13 deletions
|
@ -3,7 +3,7 @@ members = ["crates/*"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.67"
|
rust-version = "1.69"
|
||||||
homepage = "https://beta.ruff.rs/docs/"
|
homepage = "https://beta.ruff.rs/docs/"
|
||||||
documentation = "https://beta.ruff.rs/docs/"
|
documentation = "https://beta.ruff.rs/docs/"
|
||||||
repository = "https://github.com/charliermarsh/ruff"
|
repository = "https://github.com/charliermarsh/ruff"
|
||||||
|
|
|
@ -352,7 +352,7 @@ fn push_codes<I: Display>(str: &mut String, codes: impl Iterator<Item = I>) {
|
||||||
if !first {
|
if !first {
|
||||||
str.push_str(", ");
|
str.push_str(", ");
|
||||||
}
|
}
|
||||||
let _ = write!(str, "{code}");
|
_ = write!(str, "{code}");
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,4 +13,4 @@ log = { workspace = true }
|
||||||
ruff_python_ast = { path = "../ruff_python_ast" }
|
ruff_python_ast = { path = "../ruff_python_ast" }
|
||||||
|
|
||||||
rustpython-parser = { workspace = true }
|
rustpython-parser = { workspace = true }
|
||||||
serde = { workspace = true, optional = true, default_features = false, features = [] }
|
serde = { workspace = true, optional = true, features = [] }
|
||||||
|
|
|
@ -42,7 +42,7 @@ impl Parse for ArgValue {
|
||||||
fn parse(input: ParseStream) -> syn::Result<Self> {
|
fn parse(input: ParseStream) -> syn::Result<Self> {
|
||||||
let value = if input.peek(syn::token::Bracket) {
|
let value = if input.peek(syn::token::Bracket) {
|
||||||
let inner;
|
let inner;
|
||||||
let _ = bracketed!(inner in input);
|
_ = bracketed!(inner in input);
|
||||||
|
|
||||||
let values = inner.parse_terminated(
|
let values = inner.parse_terminated(
|
||||||
|parser| {
|
|parser| {
|
||||||
|
|
|
@ -6,8 +6,7 @@ edition = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { workspace = true, optional = true, default_features = false, features = [
|
serde = { workspace = true, optional = true }
|
||||||
] }
|
|
||||||
schemars = { workspace = true, optional = true }
|
schemars = { workspace = true, optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -12,13 +12,13 @@ impl BadRope<'_> {
|
||||||
#[test]
|
#[test]
|
||||||
fn main() {
|
fn main() {
|
||||||
let x: char = 'c';
|
let x: char = 'c';
|
||||||
let _ = TextSize::of(x);
|
_ = TextSize::of(x);
|
||||||
|
|
||||||
let x: &str = "hello";
|
let x: &str = "hello";
|
||||||
let _ = TextSize::of(x);
|
_ = TextSize::of(x);
|
||||||
|
|
||||||
let x: &String = &"hello".into();
|
let x: &String = &"hello".into();
|
||||||
let _ = TextSize::of(x);
|
_ = TextSize::of(x);
|
||||||
|
|
||||||
let _ = BadRope(&[""]).text_len();
|
_ = BadRope(&[""]).text_len();
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,6 @@ use ruff_text_size::TextRange;
|
||||||
#[test]
|
#[test]
|
||||||
fn main() {
|
fn main() {
|
||||||
let range = TextRange::default();
|
let range = TextRange::default();
|
||||||
let _ = &""[range];
|
_ = &""[range];
|
||||||
let _ = &String::new()[range];
|
_ = &String::new()[range];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.67
|
1.69
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue