Skip to content

Commit e821e37

Browse files
committed
fix: lint & fuzzing
1 parent df248b4 commit e821e37

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.github/actions/setup-rust/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ runs:
2121
toolchain: ${{ inputs.toolchain }}
2222
targets: ${{ inputs.targets }}
2323
components: ${{ inputs.components }}
24+
- name: Add Targets
25+
if: ${{ inputs.targets }}
26+
run: rustup target add ${{ inputs.targets }}
27+
shell: bash
2428
- uses: Swatinem/rust-cache@v2

.github/workflows/jwst.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ jobs:
388388
CARGO_TERM_COLOR: always
389389
steps:
390390
- uses: actions/checkout@v3
391-
- uses: dtolnay/rust-toolchain@stable
391+
- name: Setup Rust
392+
uses: ./.github/actions/setup-rust
392393
with:
393394
components: llvm-tools-preview
394-
- uses: Swatinem/rust-cache@v2
395395

396396
- name: Install latest nextest release
397397
uses: taiki-e/install-action@nextest
@@ -416,8 +416,8 @@ jobs:
416416
CARGO_TERM_COLOR: always
417417
steps:
418418
- uses: actions/checkout@v3
419-
- uses: dtolnay/rust-toolchain@stable
420-
- uses: Swatinem/rust-cache@v2
419+
- name: Setup Rust
420+
uses: ./.github/actions/setup-rust
421421

422422
- name: Install latest nextest release
423423
uses: taiki-e/install-action@nextest
@@ -435,10 +435,10 @@ jobs:
435435
CARGO_TERM_COLOR: always
436436
steps:
437437
- uses: actions/checkout@v3
438-
- uses: dtolnay/rust-toolchain@master
438+
- name: Setup Rust
439+
uses: ./.github/actions/setup-rust
439440
with:
440-
toolchain: nightly-2023-05-23
441-
- uses: Swatinem/rust-cache@v2
441+
toolchain: nightly-2023-08-19
442442

443443
- name: fuzzing
444444
working-directory: ./libs/jwst-codec-utils

libs/jwst-codec-utils/fuzz/fuzz_targets/apply_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fuzz_target!(|crdt_params: Vec<CRDTParam>| {
4343

4444
let trx = doc.transact_mut();
4545
let binary_from_yrs = trx.encode_update_v1().unwrap();
46-
let doc = jwst_codec::Doc::new_from_binary(binary_from_yrs).unwrap();
46+
let doc = jwst_codec::Doc::try_from_binary_v1(&binary_from_yrs).unwrap();
4747
let binary = doc.encode_update_v1().unwrap();
4848
assert_eq!(binary, binary_from_yrs);
4949
});
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.6
22
3-
pub use super::blobs::Entity as Blobs;
3+
#[cfg(feature = "bucket")]
44
pub use super::bucket_blobs::Entity as BucketBlobs;
5-
pub use super::docs::Entity as Docs;
5+
#[cfg(feature = "image")]
66
pub use super::optimized_blobs::Entity as OptimizedBlobs;
7+
pub use super::{blobs::Entity as Blobs, docs::Entity as Docs};

0 commit comments

Comments
 (0)