···228228 for part in record.txt_data() {
229229 match std::str::from_utf8(part) {
230230 Ok(s) => {
231231- if s.starts_with("did=") {
232232- let did = s[4..].trim().to_string();
231231+ if let Some(did_value) = s.strip_prefix("did=") {
232232+ let did = did_value.trim().to_string();
233233 return Ok(Some(did));
234234 }
235235 }