Skip to content

Commit

Permalink
update format
Browse files Browse the repository at this point in the history
  • Loading branch information
emgeee committed Aug 2, 2024
1 parent 2fc55ef commit 08d98ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion crates/core/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ impl Context {
pub async fn from_topic(&self, topic: TopicReader) -> Result<DataStream, DataFusionError> {
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
Expand Down
3 changes: 2 additions & 1 deletion crates/core/src/datastream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 08d98ad

Please sign in to comment.