chore(tvix/eval): use writeln for newline string
This CL address clippy warning which expects to use `writeln` instead of `write` for strings with new line. Change-Id: Ia72a07502c60cfd489ecf1e3833b9d42d44a8b17 Signed-off-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com> Reviewed-on: https://cl.tvl.fyi/c/depot/+/8030 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
		
							parent
							
								
									105069302b
								
							
						
					
					
						commit
						fc61dff037
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -24,7 +24,7 @@ pub(super) fn value_to_xml<W: Write>(mut writer: W, value: &Value) -> Result<(),
 | 
			
		|||
 | 
			
		||||
    // Write a literal document declaration, using C++-Nix-style
 | 
			
		||||
    // single quotes.
 | 
			
		||||
    write!(writer, "<?xml version='1.0' encoding='utf-8'?>\n")?;
 | 
			
		||||
    writeln!(writer, "<?xml version='1.0' encoding='utf-8'?>")?;
 | 
			
		||||
 | 
			
		||||
    let mut writer = EventWriter::new_with_config(writer, config);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -33,7 +33,7 @@ pub(super) fn value_to_xml<W: Write>(mut writer: W, value: &Value) -> Result<(),
 | 
			
		|||
    writer.write(XmlEvent::end_element())?;
 | 
			
		||||
 | 
			
		||||
    // Unwrap the writer to add the final newline that C++ Nix adds.
 | 
			
		||||
    write!(writer.into_inner(), "\n")?;
 | 
			
		||||
    writeln!(writer.into_inner())?;
 | 
			
		||||
 | 
			
		||||
    Ok(())
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue