Skip to content

Commit 99a5778

Browse files
author
t11s
authored
Add some safety rails :D
1 parent 962b8de commit 99a5778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ pub fn registry_login(
598598
.read_line(&mut line)
599599
.chain_err(|| "failed to read stdin")
600600
.map_err(failure::Error::from)?;
601-
line.trim().to_string()
601+
line.replace("cargo login", "").trim().to_string();
602602
}
603603
};
604604

0 commit comments

Comments
 (0)