Skip to content

Commit

Permalink
fut: willbe clone_dyn fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvisto committed Jul 22, 2024
1 parent ad8ac94 commit 21e2510
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions module/core/clone_dyn/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ The main function demonstrates the overall usage by creating a vector, obtaining


```rust
# #[ cfg( not( feature = "enabled" ) ) ]
# #[ cfg( not( all( feature = "enabled", feature = "clone_dyn_meta" ) ) ) ]
# fn main() {}
# #[ cfg( feature = "enabled" ) ]
# #[ cfg( all( feature = "enabled", feature = "clone_dyn_meta" ) ) ]
# fn main()
# {

Expand Down
4 changes: 2 additions & 2 deletions module/core/clone_dyn/examples/clone_dyn_trivial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
//! The main function demonstrates the overall usage by creating a vector, obtaining an iterator, and using the iterator to print elements.
//!
#[ cfg( not( feature = "enabled" ) ) ]
#[ cfg( not( all( feature = "enabled", feature = "clone_dyn_meta" ) ) ) ]
fn main() {}
#[ cfg( feature = "enabled" ) ]
#[ cfg( all( feature = "enabled", feature = "clone_dyn_meta" ) ) ]
fn main()
{
use clone_dyn::{ clone_dyn, CloneDyn };
Expand Down
10 changes: 7 additions & 3 deletions module/core/clone_dyn/tests/inc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#[ allow( unused_imports ) ]
use super::*;

mod basic_manual;
mod basic;
mod parametrized;
#[ cfg( feature = "clone_dyn_meta" ) ]
mod tests
{
pub mod basic_manual;
pub mod basic;
pub mod parametrized;
}

0 comments on commit 21e2510

Please sign in to comment.