Skip to content

Commit

Permalink
fix up flatten tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Mar 28, 2024
1 parent d330e74 commit 406d898
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flatten/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ value is stringified and concatenated together.
- **tuples**: tuple values are passed through directly.
*/

#![cfg_attr(not(feature = "std"), no_std)]
#![no_std]
#![deny(missing_docs)]

#[cfg(any(test, feature = "alloc"))]
extern crate alloc;

mod flattener;
Expand Down
2 changes: 2 additions & 0 deletions flatten/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ mod tests {

use super::*;

use alloc::borrow::ToOwned;

struct Outer<I> {
a: i32,
// #[sval(flatten)]
Expand Down

0 comments on commit 406d898

Please sign in to comment.