@@ -15,7 +15,7 @@ pub struct Config {
1515}
1616
1717impl Config {
18- /// Installs options into a [getopts_dep ::Options] struct that correspond
18+ /// Installs options into a [getopts ::Options] struct that correspond
1919 /// to the parameters in the configuration.
2020 ///
2121 /// It is the caller's responsibility to ensure that the installed options
@@ -25,21 +25,21 @@ impl Config {
2525 /// This method is only available if the `getopts` feature is enabled, which
2626 /// it is by default.
2727 #[ cfg( feature = "getopts" ) ]
28- pub fn install_options ( opts : & mut getopts_dep :: Options ) {
28+ pub fn install_options ( opts : & mut getopts :: Options ) {
2929 CommunicationConfig :: install_options ( opts) ;
3030 WorkerConfig :: install_options ( opts) ;
3131 }
3232
3333 /// Instantiates a configuration based upon the parsed options in `matches`.
3434 ///
3535 /// The `matches` object must have been constructed from a
36- /// [getopts_dep ::Options] which contained at least the options installed by
36+ /// [getopts ::Options] which contained at least the options installed by
3737 /// [Self::install_options].
3838 ///
3939 /// This method is only available if the `getopts` feature is enabled, which
4040 /// it is by default.
4141 #[ cfg( feature = "getopts" ) ]
42- pub fn from_matches ( matches : & getopts_dep :: Matches ) -> Result < Config , String > {
42+ pub fn from_matches ( matches : & getopts :: Matches ) -> Result < Config , String > {
4343 Ok ( Config {
4444 communication : CommunicationConfig :: from_matches ( matches) ?,
4545 worker : WorkerConfig :: from_matches ( matches) ?,
@@ -51,7 +51,7 @@ impl Config {
5151 /// Most commonly, callers supply `std::env::args()` as the iterator.
5252 #[ cfg( feature = "getopts" ) ]
5353 pub fn from_args < I : Iterator < Item =String > > ( args : I ) -> Result < Config , String > {
54- let mut opts = getopts_dep :: Options :: new ( ) ;
54+ let mut opts = getopts :: Options :: new ( ) ;
5555 Config :: install_options ( & mut opts) ;
5656 let matches = opts. parse ( args) . map_err ( |e| e. to_string ( ) ) ?;
5757 Config :: from_matches ( & matches)
0 commit comments