Skip to content

Commit

Permalink
Merge pull request #1237 from zeenix/fix-handshake-reject
Browse files Browse the repository at this point in the history
πŸ› zb: Correctly format list of accepted auth mechanisms
  • Loading branch information
zeenix authored Feb 3, 2025
2 parents b0b88ce + 3cc4c8f commit d83a4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zbus/src/connection/handshake/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl FromStr for Command {
Some("ERROR") => Command::Error(s.into()),
Some("NEGOTIATE_UNIX_FD") => Command::NegotiateUnixFD,
Some("REJECTED") => {
let mechs = words.map(|s| s.to_owned()).collect();
let mechs = words.collect::<Vec<_>>().join(" ").into();
Command::Rejected(mechs)
}
Some("OK") => {
Expand Down

0 comments on commit d83a4c2

Please sign in to comment.