An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(identity-wallet): fix clippy warning - use strip_prefix instead of manual slicing

authored by

Malpercio and committed by
Tangled
8b93837a f727ac8d

+2 -2
+2 -2
apps/identity-wallet/src-tauri/src/pds_client.rs
··· 228 228 for part in record.txt_data() { 229 229 match std::str::from_utf8(part) { 230 230 Ok(s) => { 231 - if s.starts_with("did=") { 232 - let did = s[4..].trim().to_string(); 231 + if let Some(did_value) = s.strip_prefix("did=") { 232 + let did = did_value.trim().to_string(); 233 233 return Ok(Some(did)); 234 234 } 235 235 }