Unverified Commit d4bf8e6e authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Update rustfmt hook to run on all files (#348)

* Update rustfmt hook to run on all files

* Add missing --check
parent 0bef36c6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -112,6 +112,8 @@ jobs:
    - uses: actions-rs/toolchain@v1
      with:
        toolchain: ${{ env.rust_version }}
    - name: Format Check
      run: rustfmt --check --edition 2018 $(find -name '*.rs' -print)
    - name: execute runtime tests
      run: ./rust-runtime/test.sh

+3 −0
Original line number Diff line number Diff line
@@ -12,3 +12,6 @@ repos:
    args: [--autofix, --ktlint-version, 0.40.0]
  - id: pretty-format-yaml
    args: [--autofix, --indent, '2']
  - id: pretty-format-rust
    entry: rustfmt --edition 2018
    files: ^.*\.rs$
+12 −8
Original line number Diff line number Diff line
@@ -17,14 +17,18 @@ async fn main() -> Result<(), dynamodb::Error> {
    let new_table = client
        .create_table()
        .table_name("test-table")
        .key_schema(KeySchemaElement::builder()
        .key_schema(
            KeySchemaElement::builder()
                .attribute_name("k")
                .key_type(KeyType::Hash)
            .build())
        .attribute_definitions(AttributeDefinition::builder()
                .build(),
        )
        .attribute_definitions(
            AttributeDefinition::builder()
                .attribute_name("k")
                .attribute_type(ScalarAttributeType::S)
            .build())
                .build(),
        )
        .provisioned_throughput(
            ProvisionedThroughput::builder()
                .write_capacity_units(10)
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

Loading