Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/cli-lib/src/stdin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use std::path::PathBuf;
///
/// The error message is returned if any of the inputs are `-` and there are other inputs.
pub(crate) fn is_std_in_flag_input(inputs: &[PathBuf]) -> Result<bool, String> {
if inputs.len() == 1 && inputs[0] == PathBuf::from("-") {
if inputs.len() == 1 && &inputs[0] == "-" {
Ok(true)
} else if inputs.iter().any(|input| *input == PathBuf::from("-")) {
} else if inputs.iter().any(|input| input == "-") {
Err("Cannot mix stdin flag with other inputs".to_string())
} else {
Ok(false)
Expand Down
Loading