File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- //
1
+ #![ deny( rust_2018_idioms) ]
2
+
2
3
use clap:: { crate_version} ;
3
4
4
5
use std:: env;
@@ -68,7 +69,7 @@ fn main() {
68
69
}
69
70
70
71
// Build command implementation
71
- pub fn build_1 ( args : & ArgMatches ) -> Result1 < ( ) > {
72
+ pub fn build_1 ( args : & ArgMatches < ' _ > ) -> Result1 < ( ) > {
72
73
let book_dir = get_book_dir ( args) ;
73
74
let mut book = MDBook1 :: load ( & book_dir) ?;
74
75
@@ -85,7 +86,7 @@ pub fn build_1(args: &ArgMatches) -> Result1<()> {
85
86
}
86
87
87
88
// Build command implementation
88
- pub fn build_2 ( args : & ArgMatches ) -> Result2 < ( ) > {
89
+ pub fn build_2 ( args : & ArgMatches < ' _ > ) -> Result2 < ( ) > {
89
90
let book_dir = get_book_dir ( args) ;
90
91
let mut book = MDBook2 :: load ( & book_dir) ?;
91
92
@@ -101,7 +102,7 @@ pub fn build_2(args: &ArgMatches) -> Result2<()> {
101
102
Ok ( ( ) )
102
103
}
103
104
104
- fn get_book_dir ( args : & ArgMatches ) -> PathBuf {
105
+ fn get_book_dir ( args : & ArgMatches < ' _ > ) -> PathBuf {
105
106
if let Some ( dir) = args. value_of ( "dir" ) {
106
107
// Check if path is relative from current dir, or absolute...
107
108
let p = Path :: new ( dir) ;
You can’t perform that action at this time.
0 commit comments