import ForgejoError in generated file
				
					
				
			This commit is contained in:
		
							parent
							
								
									769521840e
								
							
						
					
					
						commit
						3d12246cb8
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -13,6 +13,7 @@ use std::fmt::Write;
 | 
			
		|||
fn main() -> eyre::Result<()> {
 | 
			
		||||
    let spec = get_spec()?;
 | 
			
		||||
    let mut s = String::new();
 | 
			
		||||
    s.push_str("use crate::ForgejoError;\n");
 | 
			
		||||
    s.push_str("impl Forgejo {\n");
 | 
			
		||||
    for (path, item) in &spec.paths {
 | 
			
		||||
        s.push_str(&create_methods_for_path(&spec, path, item).wrap_err_with(|| path.clone())?);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue