Skip to content

Commit

Permalink
Fix imports on features +alloc +raw_value -std
Browse files Browse the repository at this point in the history
Closes #850.
  • Loading branch information
dtolnay committed Jan 22, 2022
1 parent a22b686 commit 8ecd483
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -49,6 +49,7 @@ jobs:
- run: cargo check --features raw_value
- run: cargo check --features unbounded_depth
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,raw_value
- run: cargo check --features preserve_order
if: matrix.rust != '1.45.0' && matrix.rust != '1.40.0' && matrix.rust != '1.38.0' && matrix.rust != '1.36.0'
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,preserve_order
Expand Down
3 changes: 3 additions & 0 deletions src/raw.rs
@@ -1,4 +1,7 @@
use crate::error::Error;
use alloc::borrow::ToOwned;
use alloc::boxed::Box;
use alloc::string::String;
use core::fmt::{self, Debug, Display};
use core::mem;
use serde::de::value::BorrowedStrDeserializer;
Expand Down
2 changes: 2 additions & 0 deletions src/value/de.rs
Expand Up @@ -4,6 +4,8 @@ use crate::number::Number;
use crate::value::Value;
use alloc::borrow::{Cow, ToOwned};
use alloc::string::String;
#[cfg(feature = "raw_value")]
use alloc::string::ToString;
use alloc::vec::{self, Vec};
use core::fmt;
use core::slice;
Expand Down

0 comments on commit 8ecd483

Please sign in to comment.