Skip to content

Commit

Permalink
chore: bump minimal rust version to 1.78
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed May 24, 2024
1 parent d8a828b commit c79f840
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 5 additions & 4 deletions crates/kubegraph/api/src/frame/polars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use pl::{
dsl,
frame::{IntoLazy, LazyFrame},
},
series::Series,prelude::UnionArgs,
prelude::UnionArgs,
series::Series,
};

use crate::graph::{GraphDataType, GraphEdges, GraphMetadataPinnedExt};
Expand Down Expand Up @@ -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()),
Expand Down

0 comments on commit c79f840

Please sign in to comment.