Skip to content

Commit f6cb417

Browse files
authored
Upgrade to Rust 1.91 (#5972)
* Upgrade Rust to 1.91 * Fix clippy warnings * Increase CI workflow jobs timeout
1 parent 4dc3f71 commit f6cb417

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
tests:
3232
name: Unit tests
3333
runs-on: "ubuntu-latest"
34-
timeout-minutes: 40
34+
timeout-minutes: 60
3535
permissions:
3636
contents: read
3737
actions: write
@@ -105,7 +105,7 @@ jobs:
105105
lints:
106106
name: Lints
107107
runs-on: "ubuntu-latest"
108-
timeout-minutes: 20
108+
timeout-minutes: 60
109109
permissions:
110110
contents: read
111111
actions: write

quickwit/quickwit-cli/src/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ mod test {
12661266
let mut split_4 = template_split;
12671267
split_4.split_metadata = split_metadata_4;
12681268

1269-
let splits = vec![split_1, split_2, split_3, split_4];
1269+
let splits = [split_1, split_2, split_3, split_4];
12701270

12711271
let splits_num_docs = splits
12721272
.iter()

quickwit/quickwit-cli/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ fn about_text() -> String {
133133

134134
#[cfg(test)]
135135
mod tests {
136-
use std::path::PathBuf;
137136
use std::str::FromStr;
138137
use std::time::Duration;
139138

@@ -683,7 +682,7 @@ mod tests {
683682
split_id,
684683
target_dir,
685684
..
686-
})) if &index_id == "wikipedia" && &split_id == "ABC" && target_dir == PathBuf::from("datadir")
685+
})) if &index_id == "wikipedia" && &split_id == "ABC" && target_dir == *"datadir"
687686
));
688687
Ok(())
689688
}

quickwit/quickwit-control-plane/src/indexing_scheduler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ mod tests {
981981
index_uid: IndexUid::for_test("index-2", 0),
982982
source_id: "source2".to_string(),
983983
};
984-
let sources = vec![
984+
let sources = [
985985
SourceToSchedule {
986986
source_uid: source_1.clone(),
987987
source_type: SourceToScheduleType::NonSharded {

quickwit/quickwit-proto/src/codegen/quickwit/quickwit.search.rs

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

quickwit/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "1.90"
2+
channel = "1.91"
33
components = ["cargo", "clippy", "rustfmt", "rust-docs"]
44

0 commit comments

Comments
 (0)