Skip to content

Commit 8ecd483

Browse files
committed
Fix imports on features +alloc +raw_value -std
Closes #850.
1 parent a22b686 commit 8ecd483

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
- run: cargo check --features raw_value
5050
- run: cargo check --features unbounded_depth
5151
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc
52+
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,raw_value
5253
- run: cargo check --features preserve_order
5354
if: matrix.rust != '1.45.0' && matrix.rust != '1.40.0' && matrix.rust != '1.38.0' && matrix.rust != '1.36.0'
5455
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,preserve_order

src/raw.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
use crate::error::Error;
2+
use alloc::borrow::ToOwned;
3+
use alloc::boxed::Box;
4+
use alloc::string::String;
25
use core::fmt::{self, Debug, Display};
36
use core::mem;
47
use serde::de::value::BorrowedStrDeserializer;

src/value/de.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use crate::number::Number;
44
use crate::value::Value;
55
use alloc::borrow::{Cow, ToOwned};
66
use alloc::string::String;
7+
#[cfg(feature = "raw_value")]
8+
use alloc::string::ToString;
79
use alloc::vec::{self, Vec};
810
use core::fmt;
911
use core::slice;

0 commit comments

Comments
 (0)