Use Rust 1.69 (#4065)

This commit is contained in:
Micha Reiser 2023-04-23 00:04:17 +02:00 committed by GitHub
parent ba4f4f4672
commit e33887718d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 13 deletions

View file

@ -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"

View file

@ -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;
} }
} }

View file

@ -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 = [] }

View file

@ -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| {

View file

@ -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]

View file

@ -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();
} }

View file

@ -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];
} }

View file

@ -1 +1 @@
1.67 1.69