@@ -15,7 +15,7 @@ pub struct Config {
15
15
}
16
16
17
17
impl Config {
18
- /// Installs options into a [getopts_dep ::Options] struct that correspond
18
+ /// Installs options into a [getopts ::Options] struct that correspond
19
19
/// to the parameters in the configuration.
20
20
///
21
21
/// It is the caller's responsibility to ensure that the installed options
@@ -25,21 +25,21 @@ impl Config {
25
25
/// This method is only available if the `getopts` feature is enabled, which
26
26
/// it is by default.
27
27
#[ cfg( feature = "getopts" ) ]
28
- pub fn install_options ( opts : & mut getopts_dep :: Options ) {
28
+ pub fn install_options ( opts : & mut getopts :: Options ) {
29
29
CommunicationConfig :: install_options ( opts) ;
30
30
WorkerConfig :: install_options ( opts) ;
31
31
}
32
32
33
33
/// Instantiates a configuration based upon the parsed options in `matches`.
34
34
///
35
35
/// 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
37
37
/// [Self::install_options].
38
38
///
39
39
/// This method is only available if the `getopts` feature is enabled, which
40
40
/// it is by default.
41
41
#[ 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 > {
43
43
Ok ( Config {
44
44
communication : CommunicationConfig :: from_matches ( matches) ?,
45
45
worker : WorkerConfig :: from_matches ( matches) ?,
@@ -51,7 +51,7 @@ impl Config {
51
51
/// Most commonly, callers supply `std::env::args()` as the iterator.
52
52
#[ cfg( feature = "getopts" ) ]
53
53
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 ( ) ;
55
55
Config :: install_options ( & mut opts) ;
56
56
let matches = opts. parse ( args) . map_err ( |e| e. to_string ( ) ) ?;
57
57
Config :: from_matches ( & matches)
0 commit comments