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

fix: maybestd rc feature imports #88

Merged
merged 2 commits into from
Mar 17, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion borsh/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::maybestd::{
};

#[cfg(feature = "rc")]
use std::{rc::Rc, sync::Arc};
use crate::maybestd::{rc::Rc, sync::Arc};

mod hint;

Expand Down
2 changes: 1 addition & 1 deletion borsh/src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::maybestd::{
};

#[cfg(feature = "rc")]
use std::{rc::Rc, sync::Arc};
use crate::maybestd::{rc::Rc, sync::Arc};

pub(crate) mod helpers;

Expand Down
3 changes: 2 additions & 1 deletion borsh/tests/test_rc.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#![cfg(feature = "rc")]

use borsh::maybestd::rc::Rc;
use borsh::maybestd::sync::Arc;
use borsh::{BorshDeserialize, BorshSerialize};
use std::{rc::Rc, sync::Arc};

#[test]
fn test_rc_roundtrip() {
Expand Down