Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
ilslv committed Jul 14, 2023
1 parent 5d77999 commit efc860b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion impl/src/into.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl StructAttribute {

/// Parses single [`StructAttribute`].
fn parse(content: ParseStream<'_>, fields: &syn::Fields) -> Result<Self> {
check_legacy_syntax(&content, fields)?;
check_legacy_syntax(content, fields)?;

let mut out = Self::default();

Expand Down
8 changes: 5 additions & 3 deletions tests/into.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
extern crate alloc;

#[cfg(not(feature = "std"))]
use alloc::{borrow::Cow, string::String};
use alloc::{
borrow::Cow,
string::{String, ToString},
};
#[cfg(feature = "std")]
use std::borrow::Cow;
use std::mem;
use std::{borrow::Cow, mem};

use derive_more::Into;
use static_assertions::assert_not_impl_any;
Expand Down

0 comments on commit efc860b

Please sign in to comment.