Skip to content

Commit

Permalink
fixes missing use alloc::string::ToString statements
Browse files Browse the repository at this point in the history
  • Loading branch information
chanced committed Feb 1, 2025
1 parent d1742eb commit 27264a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use crate::{
index::{OutOfBoundsError, ParseIndexError},
Pointer, PointerBuf,
};
use alloc::boxed::Box;
use alloc::{boxed::Box, string::ToString};
use core::{
fmt::{self, Debug},
iter::once,
Expand Down
1 change: 1 addition & 0 deletions src/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,7 @@ mod tests {
#[test]
#[cfg(feature = "json")]
fn into_value() {
use alloc::string::ToString;
use serde_json::Value;
let ptr = Pointer::from_static("/foo/bar");
let value: Value = ptr.into();
Expand Down
1 change: 1 addition & 0 deletions src/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
//! | TOML | `toml::Value` | `"toml"` | |
//!
//!
use alloc::string::ToString;
use core::iter::once;

use crate::{
Expand Down

0 comments on commit 27264a3

Please sign in to comment.