From 08d98ad0b63277dfb2c8ea516c0ac3dac747e62f Mon Sep 17 00:00:00 2001 From: Matt Green Date: Fri, 2 Aug 2024 10:20:37 -0700 Subject: [PATCH] update format --- .github/workflows/rust.yml | 14 +++++++------- crates/core/src/context.rs | 3 ++- crates/core/src/datastream.rs | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index aecc3cb..0a91501 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,13 +24,13 @@ jobs: clippy_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Run Clippy - run: cargo clippy --all-targets --all-features - + - uses: actions/checkout@v4 + - name: Run Clippy + run: cargo clippy --all-targets --all-features + rust_fmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Run rust fmt - run: cargo fmt --all -- --check + - uses: actions/checkout@v4 + - name: Run rust fmt + run: cargo fmt --all -- --check diff --git a/crates/core/src/context.rs b/crates/core/src/context.rs index bb73387..b106c6d 100644 --- a/crates/core/src/context.rs +++ b/crates/core/src/context.rs @@ -44,7 +44,8 @@ impl Context { pub async fn from_topic(&self, topic: TopicReader) -> Result { let topic_name = topic.0.topic.clone(); - self.register_table(topic_name.clone(), Arc::new(topic)).await?; + self.register_table(topic_name.clone(), Arc::new(topic)) + .await?; let df = self .session_conext diff --git a/crates/core/src/datastream.rs b/crates/core/src/datastream.rs index 5542f3f..c50f25d 100644 --- a/crates/core/src/datastream.rs +++ b/crates/core/src/datastream.rs @@ -80,7 +80,8 @@ impl DataStream { .await?; self.context - .register_table(topic.clone(), Arc::new(sink_topic)).await?; + .register_table(topic.clone(), Arc::new(sink_topic)) + .await?; self.df .as_ref()