File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 4141 run : |
4242 cd rust
4343 cargo test --verbose
44+
45+ publish-dry-run :
46+ name : cargo:publish-dry-run
47+ runs-on : ubuntu-latest
48+ continue-on-error : true
49+ steps :
50+ - uses : actions/checkout@v6
51+ - name : Install Rust tools
52+ run : |
53+ rustup update --no-self-update stable
54+ rustup default stable
55+ - uses : actions/cache@v5
56+ with :
57+ path : |
58+ ~/.cargo/registry
59+ ~/.cargo/git
60+ rust/target
61+ key : ${{ runner.os }}-cargo-${{ hashFiles('rust/Cargo.lock') }}
62+ restore-keys : |
63+ ${{ runner.os }}-cargo-
4464 - name : Test publish crates
4565 run : |
4666 cd rust
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use std::ptr::NonNull;
1414/// ```
1515pub fn parse ( rbs_code : & [ u8 ] ) -> Result < SignatureNode < ' _ > , String > {
1616 unsafe {
17- let start_ptr = rbs_code. as_ptr ( ) as * const i8 ;
17+ let start_ptr = rbs_code. as_ptr ( ) as * const std :: os :: raw :: c_char ;
1818 let end_ptr = start_ptr. add ( rbs_code. len ( ) ) ;
1919 let bytes = rbs_code. len ( ) as i32 ;
2020
You can’t perform that action at this time.
0 commit comments