Commit a1c5b5fa73

a1c5b5fa73640f14e8de9d9e347e9bd12787476c

parent: 4ef69751bc

Unregistered key

Ulyssa <git@ulyssa.dev> · 2026-09-21 01:09 UTC
committer: <noreply@github.com>

Print verification commands with quotes (#724)

Layout: unified · split

src/windows/verify.rs +7 −7
@@ -101,17 +101,17 @@ impl fmt::Display for VerifyItem {
101 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 101 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
102 match self.request.state() { 102 match self.request.state() {
103 VerificationRequestState::Requested { .. } => { 103 VerificationRequestState::Requested { .. } => {
104 write!(f, ":verify accept {}", self.request.flow_id()) 104 write!(f, ":verify accept {:?}", self.request.flow_id())
105 }, 105 },
106 VerificationRequestState::Ready { their_methods, .. } 106 VerificationRequestState::Ready { their_methods, .. }
107 if their_methods.contains(&VerificationMethod::SasV1) => 107 if their_methods.contains(&VerificationMethod::SasV1) =>
108 { 108 {
109 write!(f, ":verify emoji {}", self.request.flow_id()) 109 write!(f, ":verify emoji {:?}", self.request.flow_id())
110 }, 110 },
111 VerificationRequestState::Transitioned { verification: Verification::SasV1(sas) } => { 111 VerificationRequestState::Transitioned { verification: Verification::SasV1(sas) } => {
112 match sas.state() { 112 match sas.state() {
113 SasState::KeysExchanged { emojis: Some(_), .. } => { 113 SasState::KeysExchanged { emojis: Some(_), .. } => {
114 write!(f, ":verify confirm {}", self.request.flow_id()) 114 write!(f, ":verify confirm {:?}", self.request.flow_id())
115 }, 115 },
116 _ => Ok(()), 116 _ => Ok(()),
117 } 117 }
@@ -119,10 +119,10 @@ impl fmt::Display for VerifyItem {
119 VerificationRequestState::Transitioned { verification: Verification::QrV1(qr) } => { 119 VerificationRequestState::Transitioned { verification: Verification::QrV1(qr) } => {
120 match qr.state() { 120 match qr.state() {
121 QrVerificationState::Started => { 121 QrVerificationState::Started => {
122 write!(f, ":verify emoji {}", self.request.flow_id()) 122 write!(f, ":verify emoji {:?}", self.request.flow_id())
123 }, 123 },
124 QrVerificationState::Scanned => { 124 QrVerificationState::Scanned => {
125 write!(f, ":verify confirm {}", self.request.flow_id()) 125 write!(f, ":verify confirm {:?}", self.request.flow_id())
126 }, 126 },
127 _ => Ok(()), 127 _ => Ok(()),
128 } 128 }
@@ -191,7 +191,7 @@ impl ListItem<IambInfo> for VerifyItem {
191 lines.push(Line::from(" If they don't match, run:")); 191 lines.push(Line::from(" If they don't match, run:"));
192 lines.push(Line::from("")); 192 lines.push(Line::from(""));
193 lines.push(Line::from(Span::styled( 193 lines.push(Line::from(Span::styled(
194 format!(" :verify mismatch {}", self.request.flow_id()), 194 format!(" :verify mismatch {:?}", self.request.flow_id()),
195 bold, 195 bold,
196 ))); 196 )));
197 lines.push(Line::from("")); 197 lines.push(Line::from(""));
@@ -241,7 +241,7 @@ impl ListItem<IambInfo> for VerifyItem {
241 lines.push(Line::from(" If it shows an error, run:")); 241 lines.push(Line::from(" If it shows an error, run:"));
242 lines.push(Line::from("")); 242 lines.push(Line::from(""));
243 lines.push(Line::from(Span::styled( 243 lines.push(Line::from(Span::styled(
244 format!(" :verify mismatch {}", self.request.flow_id()), 244 format!(" :verify mismatch {:?}", self.request.flow_id()),
245 bold, 245 bold,
246 ))); 246 )));
247 lines.push(Line::from("")); 247 lines.push(Line::from(""));