mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-29 09:06:02 +00:00
Inline format! args wherever possible
This commit is contained in:
1 parent
487bed2d95
commit
4c85483486
17 files changed
+35
-40
No files matched your search
+1
-1
@@ -197,7 +197,7 @@ impl<'a> Input<'a> {
|
||||
InputKind::StdIn => {
|
||||
if let Some(stdout) = stdout_identifier {
|
||||
let input_identifier = Identifier::try_from(clircle::Stdio::Stdin)
|
||||
.map_err(|e| format!("Stdin: Error identifying file: {}", e))?;
|
||||
.map_err(|e| format!("Stdin: Error identifying file: {e}"))?;
|
||||
if stdout.surely_conflicts_with(&input_identifier) {
|
||||
return Err("IO circle detected. The input from stdin is also an output. Aborting to avoid infinite loop.".into());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user