mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-29 22:24:35 +00:00 
			
		
		
		
	Inline format! args wherever possible
				
					
				
			This commit is contained in:
		| @@ -29,7 +29,7 @@ impl BatTester { | ||||
|                 "--color=never", | ||||
|                 "--decorations=always", | ||||
|                 "--terminal-width=80", | ||||
|                 &format!("--style={}", style), | ||||
|                 &format!("--style={style}"), | ||||
|             ]) | ||||
|             .output() | ||||
|             .expect("bat failed"); | ||||
| @@ -40,7 +40,7 @@ impl BatTester { | ||||
|             .replace("tests/snapshots/", ""); | ||||
|  | ||||
|         let mut expected = String::new(); | ||||
|         let mut file = File::open(format!("tests/snapshots/output/{}.snapshot.txt", name)) | ||||
|         let mut file = File::open(format!("tests/snapshots/output/{name}.snapshot.txt")) | ||||
|             .expect("snapshot file missing"); | ||||
|         file.read_to_string(&mut expected) | ||||
|             .expect("could not read snapshot file"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user