Skip to content

Commit

Permalink
refactor: better lib imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ce7elem committed Sep 29, 2023
1 parent 20423bf commit 018fd19
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
3 changes: 1 addition & 2 deletions examples/ansible-playbook-simple/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use rs_ansible::options::*;
use rs_ansible::playbook::*;
use rs_ansible::*;

fn main() {
let conn_opts = AnsibleConnectionOptions {
Expand Down
10 changes: 7 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
pub mod executor;
pub mod options;
pub mod playbook;
mod executor;
mod options;
mod playbook;

pub use executor::*;
pub use options::*;
pub use playbook::*;
2 changes: 1 addition & 1 deletion tests/executor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[cfg(test)]
mod tests {
use crate::test_utils::*;
use rs_ansible::executor::*;
use rs_ansible::*;
use std::fs;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/options.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[cfg(test)]
mod tests {
use rs_ansible::options::*;
use rs_ansible::*;

#[test]
fn generate_connection_options() {
Expand Down
3 changes: 1 addition & 2 deletions tests/playbook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
mod tests {
use serde_json::json;

use rs_ansible::options::*;
use rs_ansible::playbook::*;
use rs_ansible::*;

#[test]
fn generate_connection_options() {
Expand Down

0 comments on commit 018fd19

Please sign in to comment.