Skip to content

Commit

Permalink
Merge pull request #1414 from Inkvisto/willbe_clone_dyn
Browse files Browse the repository at this point in the history
READY: (willbe) clone_dyn warnings fixes
  • Loading branch information
Wandalen authored Jul 23, 2024
2 parents eb4b631 + 21e2510 commit 8edbf08
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 8edbf08

Please sign in to comment.