diff --git a/src/config.rs b/src/file.rs similarity index 99% rename from src/config.rs rename to src/file.rs index 10db949..43da5e0 100644 --- a/src/config.rs +++ b/src/file.rs @@ -82,7 +82,7 @@ enum LookupTreeNode<'a> { /// value is `a = d`: /// /// ``` -/// # use git_config::config::GitConfig; +/// # use git_config::file::GitConfig; /// # use std::borrow::Cow; /// # use std::convert::TryFrom; /// # let git_config = GitConfig::try_from("[core]a=b\n[core]\na=c\na=d").unwrap(); @@ -173,7 +173,7 @@ impl<'a> GitConfig<'a> { /// # Examples /// /// ``` - /// # use git_config::config::{GitConfig, GitConfigError}; + /// # use git_config::file::{GitConfig, GitConfigError}; /// # use git_config::values::{Integer, Value, Boolean}; /// # use std::borrow::Cow; /// # use std::convert::TryFrom; @@ -317,7 +317,7 @@ impl<'a> GitConfig<'a> { /// Attempting to get all values of `a` yields the following: /// /// ``` - /// # use git_config::config::GitConfig; + /// # use git_config::file::GitConfig; /// # use std::borrow::Cow; /// # use std::convert::TryFrom; /// # let git_config = GitConfig::try_from("[core]a=b\n[core]\na=c\na=d").unwrap(); @@ -384,7 +384,7 @@ impl<'a> GitConfig<'a> { /// Attempting to get all values of `a` yields the following: /// /// ``` - /// # use git_config::config::{GitConfig, GitConfigError}; + /// # use git_config::file::{GitConfig, GitConfigError}; /// # use std::borrow::Cow; /// # use std::convert::TryFrom; /// # let mut git_config = GitConfig::try_from("[core]a=b\n[core]\na=c\na=d").unwrap(); diff --git a/src/lib.rs b/src/lib.rs index b14f04f..7e5452b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ extern crate serde_crate as serde; // mod de; // mod ser; // mod error; -pub mod config; +pub mod file; pub mod parser; pub mod values;