We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 553aad7 commit 007acb1Copy full SHA for 007acb1
src/cmd/inspect.rs
@@ -12,9 +12,11 @@ impl Inspect {
12
pub async fn run(self) -> anyhow::Result<()> {
13
let mut tokens = self.token;
14
15
- let mut lines = BufReader::new(stdin()).lines();
16
- while let Some(line) = lines.next_line().await? {
17
- tokens.push(line);
+ if tokens.is_empty() {
+ let mut lines = BufReader::new(stdin()).lines();
+ while let Some(line) = lines.next_line().await? {
18
+ tokens.push(line);
19
+ }
20
}
21
22
for (n, token) in tokens.into_iter().enumerate() {
0 commit comments