Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hds committed Jan 31, 2023
1 parent 3cecc8e commit 7a6ff7f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cargo/sources/git/known_hosts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,12 @@ mod tests {
SshHostKeyType::Ed255219,
&khs[0].key,
) {
Err(KnownHostError::HostKeyRevoked { hostname, remote_host_key, location, .. }) => {
Err(KnownHostError::HostKeyRevoked {
hostname,
remote_host_key,
location,
..
}) => {
assert_eq!("example.com", hostname);
assert_eq!(
"AAAAC3NzaC1lZDI1NTE5AAAAIKVYJpa0yUGaNk0NXQTPWa0tHjqRpx+7hl2diReH6DtR",
Expand All @@ -877,7 +882,7 @@ mod tests {
location,
KnownHostLocation::File { lineno: 4, .. }
));
},
}
_ => panic!("Expected host key to be reject with error HostKeyRevoked."),
}
}
Expand Down

0 comments on commit 7a6ff7f

Please sign in to comment.