Update to rustc 1.95.0 (#5962)

* Update to rustc 1.95.0

* fmt
This commit is contained in:
aecsocket
2026-05-01 20:39:14 +01:00
committed by GitHub
parent 264aade726
commit 9403462915
15 changed files with 20 additions and 183 deletions

View File

@@ -41,10 +41,11 @@ pub enum Bucketing {
BucketSize(u64),
}
#[derive(Serialize, Deserialize, Debug, Clone)]
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
#[serde(rename_all = "snake_case")]
pub enum TextMatchType {
MaxScore,
#[default]
MaxWeight,
SumScore,
}
@@ -59,12 +60,6 @@ impl TextMatchType {
}
}
impl Default for TextMatchType {
fn default() -> Self {
Self::MaxWeight
}
}
impl Default for Bucketing {
fn default() -> Self {
Self::Buckets(5)

View File

@@ -547,8 +547,8 @@ async fn index_versions(
}
let all_version_ids = versions
.iter()
.flat_map(|(_, version_ids)| version_ids.iter())
.values()
.flat_map(|version_ids| version_ids.iter())
.map(|(version_id, _)| version_id.0)
.collect::<Vec<i64>>();