Skip to content

Commit

Permalink
chore(clippy): address new pedantic lints in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
martinohmann committed Apr 9, 2024
1 parent 1121927 commit b11fee7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions crates/hcl-primitives/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(not(feature = "std"))]
use alloc::string::{String, ToString};
use core::fmt;

Expand Down
1 change: 1 addition & 0 deletions crates/hcl-primitives/src/ident.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use crate::{Error, InternalString};
use alloc::borrow::{Borrow, Cow};
use alloc::format;
#[cfg(not(feature = "std"))]
use alloc::string::String;
use core::fmt;
use core::ops;
Expand Down
2 changes: 2 additions & 0 deletions crates/hcl-primitives/src/internal_string.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
//! Provides the `InternalString` type and associated functionality.
use alloc::borrow::{Borrow, Cow};
#[cfg(not(feature = "std"))]
use alloc::boxed::Box;
#[cfg(not(feature = "std"))]
use alloc::string::String;
use core::fmt;
use core::ops::Deref;
Expand Down
2 changes: 1 addition & 1 deletion crates/hcl-rs/src/expr/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use super::*;
use crate::de::{EnumAccess, FromStrVisitor, OptionDeserializer, VariantName};
use crate::{Error, Identifier, Result};
use crate::Error;
use serde::de::value::{MapAccessDeserializer, StrDeserializer, StringDeserializer};
use serde::de::{self, Expected, IntoDeserializer, Unexpected, VariantAccess};
use serde::{forward_to_deserialize_any, Deserializer};
Expand Down
3 changes: 1 addition & 2 deletions crates/hcl-rs/src/expr/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ mod tests;

use super::*;
use crate::ser::{in_internal_serialization, InternalHandles, SerializeInternalHandleStruct};
use crate::{format, Error, Identifier, Number, Result};
use crate::Error;
use serde::ser::{self, Impossible, SerializeMap};
use std::fmt;

const EXPR_HANDLE_MARKER: &str = "\x00$hcl::ExprHandle";

Expand Down

0 comments on commit b11fee7

Please sign in to comment.