From c79f840c716b1f55765ed472e49e184bb9f1603c Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Fri, 24 May 2024 05:10:05 +0000 Subject: [PATCH] chore: bump minimal rust version to 1.78 --- Cargo.toml | 2 +- crates/kubegraph/api/src/frame/polars.rs | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f591502b..9d572d43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,7 @@ include = ["src/**/*.rs", "Cargo.toml"] keywords = ["iac", "kubernetes", "openark"] license = "GPL-3.0-or-later WITH Classpath-exception-2.0" readme = "./README.md" -rust-version = "1.70" +rust-version = "1.78" homepage = "https://github.com/ulagbulag/OpenARK" repository = "https://github.com/ulagbulag/OpenARK" version = "0.1.0" diff --git a/crates/kubegraph/api/src/frame/polars.rs b/crates/kubegraph/api/src/frame/polars.rs index cfe9549a..4f0cc474 100644 --- a/crates/kubegraph/api/src/frame/polars.rs +++ b/crates/kubegraph/api/src/frame/polars.rs @@ -6,7 +6,8 @@ use pl::{ dsl, frame::{IntoLazy, LazyFrame}, }, - series::Series,prelude::UnionArgs, + prelude::UnionArgs, + series::Series, }; use crate::graph::{GraphDataType, GraphEdges, GraphMetadataPinnedExt}; @@ -45,14 +46,14 @@ where MF: GraphMetadataPinnedExt, MT: GraphMetadataPinnedExt, { - let exprs: &[dsl::Expr] = match ty { - GraphDataType::Edge => &[ + let exprs = match ty { + GraphDataType::Edge => [ dsl::col(&from.src()).alias(&to.src()), dsl::col(&from.sink()).alias(&to.sink()), dsl::col(&from.capacity()).alias(&to.capacity()), dsl::col(&from.unit_cost()).alias(&to.unit_cost()), ], - GraphDataType::Node => &[ + GraphDataType::Node => [ dsl::col(&from.name()).alias(&to.name()), dsl::col(&from.capacity()).alias(&to.capacity()), dsl::col(&from.supply()).alias(&to.supply()),