File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- // 
1+ #![ deny( rust_2018_idioms) ]  
2+ 
23use  clap:: { crate_version} ; 
34
45use  std:: env; 
@@ -68,7 +69,7 @@ fn main() {
6869} 
6970
7071// Build command implementation 
71- pub  fn  build_1 ( args :  & ArgMatches )  -> Result1 < ( ) >  { 
72+ pub  fn  build_1 ( args :  & ArgMatches < ' _ > )  -> Result1 < ( ) >  { 
7273    let  book_dir = get_book_dir ( args) ; 
7374    let  mut  book = MDBook1 :: load ( & book_dir) ?; 
7475
@@ -85,7 +86,7 @@ pub fn build_1(args: &ArgMatches) -> Result1<()> {
8586} 
8687
8788// Build command implementation 
88- pub  fn  build_2 ( args :  & ArgMatches )  -> Result2 < ( ) >  { 
89+ pub  fn  build_2 ( args :  & ArgMatches < ' _ > )  -> Result2 < ( ) >  { 
8990    let  book_dir = get_book_dir ( args) ; 
9091    let  mut  book = MDBook2 :: load ( & book_dir) ?; 
9192
@@ -101,7 +102,7 @@ pub fn build_2(args: &ArgMatches) -> Result2<()> {
101102    Ok ( ( ) ) 
102103} 
103104
104- fn  get_book_dir ( args :  & ArgMatches )  -> PathBuf  { 
105+ fn  get_book_dir ( args :  & ArgMatches < ' _ > )  -> PathBuf  { 
105106    if  let  Some ( dir)  = args. value_of ( "dir" )  { 
106107        // Check if path is relative from current dir, or absolute... 
107108        let  p = Path :: new ( dir) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments