Skip to content

Commit

Permalink
fix: remove leftover near_sdk::__private::schemars (#1120)
Browse files Browse the repository at this point in the history
* fix: remove leftover `near_sdk::__private::schemars`

* ci: fix ci on 1.69 test
  • Loading branch information
dj8yfo authored Dec 19, 2023
1 parent 0022685 commit d5c9936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ jobs:
toolchain: ${{ matrix.toolchain }}
default: true
target: wasm32-unknown-unknown
- name: downgrade `anstyle`,`anstyle-parse`,`clap`,`clap_lex` crates to support older Rust toolchain
- name: downgrade `anstyle`,`anstyle-parse`,`anstyle-query`,`clap`,`clap_lex`, `home` crates to support older Rust toolchain
if: matrix.toolchain == '1.69.0'
run: |
cargo update -p anstyle --precise 1.0.2
cargo update -p anstyle-query --precise 1.0.0
cargo update -p anstyle-parse --precise 0.2.1
cargo update -p clap --precise 4.3.24
cargo update -p clap_lex --precise 0.5.0
cargo update -p home --precise 0.5.5
- uses: Swatinem/rust-cache@v1
- name: Test
run: cargo test --all --features unstable,legacy
Expand Down
2 changes: 1 addition & 1 deletion near-sdk-macros/src/core_impl/abi/abi_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn generate(i: &ItemImplInfo) -> TokenStream2 {
pub extern "C" fn #near_abi_symbol() -> (*const u8, usize) {
use ::std::string::String;

let mut gen = ::near_sdk::__private::schemars::gen::SchemaGenerator::default();
let mut gen = ::near_sdk::schemars::gen::SchemaGenerator::default();
let functions = vec![#(#functions),*];
let mut data = ::std::mem::ManuallyDrop::new(
::near_sdk::serde_json::to_vec(&::near_sdk::__private::ChunkedAbiEntry::new(
Expand Down

0 comments on commit d5c9936

Please sign in to comment.