Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix new 1.75 warnings #1128

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion near-contract-standards/src/fungible_token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ pub mod storage_impl;

pub use crate::fungible_token::core::FungibleTokenCore;
pub use core_impl::{Balance, FungibleToken};
pub use macros::*;
pub use resolver::FungibleTokenResolver;
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
mod approval_impl;
mod approval_receiver;

pub use approval_impl::*;
pub use approval_receiver::*;

use crate::non_fungible_token::token::TokenId;
Expand Down
2 changes: 0 additions & 2 deletions near-contract-standards/src/non_fungible_token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ pub use self::token::{Token, TokenId};
mod utils;
pub use utils::*;

pub use macros::*;

pub use self::approval::NonFungibleTokenApproval;
pub use self::core::NonFungibleToken;
pub use self::core::NonFungibleTokenResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ impl AttrSigInfo {
}
}

pub fn deserialize_data(ty: &SerializerType) -> TokenStream2 {
fn deserialize_data(ty: &SerializerType) -> TokenStream2 {
match ty {
SerializerType::JSON => quote! {
::near_sdk::serde_json::from_slice(&data).expect("Failed to deserialize callback using JSON")
Expand Down
4 changes: 0 additions & 4 deletions near-sdk-macros/src/core_impl/code_generator/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
mod attr_sig_info;
pub use attr_sig_info::*;

mod impl_item_method_info;
pub use impl_item_method_info::*;

mod item_trait_info;
pub use item_trait_info::*;

mod item_impl_info;
pub use item_impl_info::*;

pub(crate) mod ext;
pub(crate) mod metadata;
Expand Down
2 changes: 1 addition & 1 deletion near-sdk/src/types/public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ mod tests {
#[test]
fn test_public_key_to_string() {
let key: PublicKey = expected_key();
let actual: String = String::try_from(&key).unwrap();
let actual: String = String::from(&key);
assert_eq!(actual, "ed25519:6E8sCci9badyRkXb3JoRpBj5p8C6Tw41ELDZoiihKEtp");
}

Expand Down
Loading