mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +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]
|
||||
edition = "2021"
|
||||
rust-version = "1.67"
|
||||
rust-version = "1.69"
|
||||
homepage = "https://beta.ruff.rs/docs/"
|
||||
documentation = "https://beta.ruff.rs/docs/"
|
||||
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 {
|
||||
str.push_str(", ");
|
||||
}
|
||||
let _ = write!(str, "{code}");
|
||||
_ = write!(str, "{code}");
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,4 +13,4 @@ log = { workspace = true }
|
|||
ruff_python_ast = { path = "../ruff_python_ast" }
|
||||
|
||||
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> {
|
||||
let value = if input.peek(syn::token::Bracket) {
|
||||
let inner;
|
||||
let _ = bracketed!(inner in input);
|
||||
_ = bracketed!(inner in input);
|
||||
|
||||
let values = inner.parse_terminated(
|
||||
|parser| {
|
||||
|
|
|
@ -6,8 +6,7 @@ edition = { workspace = true }
|
|||
rust-version = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
serde = { workspace = true, optional = true, default_features = false, features = [
|
||||
] }
|
||||
serde = { workspace = true, optional = true }
|
||||
schemars = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -12,13 +12,13 @@ impl BadRope<'_> {
|
|||
#[test]
|
||||
fn main() {
|
||||
let x: char = 'c';
|
||||
let _ = TextSize::of(x);
|
||||
_ = TextSize::of(x);
|
||||
|
||||
let x: &str = "hello";
|
||||
let _ = TextSize::of(x);
|
||||
_ = TextSize::of(x);
|
||||
|
||||
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]
|
||||
fn main() {
|
||||
let range = TextRange::default();
|
||||
let _ = &""[range];
|
||||
let _ = &String::new()[range];
|
||||
_ = &""[range];
|
||||
_ = &String::new()[range];
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
1.67
|
||||
1.69
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue