CLI app for developers prototyping atproto functionality
1
fork

Configure Feed

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

refactor: simplify resolve_identifier return expression

Avoid let-binding that is immediately returned. Let the match expression
be the return value directly, improving code clarity and satisfying clippy.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

+4 -6
+4 -6
src/commands/test/labeler/identity.rs
··· 855 855 dns: &dyn DnsResolver, 856 856 results: &mut Vec<CheckResult>, 857 857 ) -> Option<Did> { 858 - let did = match identifier { 858 + // Note: explicit_did vs resolved DID mismatch is checked separately as 859 + // resolved_did_matches_flag in the main run() function, not here. 860 + match identifier { 859 861 AtIdentifier::Handle(handle) => match resolve_handle(handle, http, dns).await { 860 862 Ok(did) => { 861 863 results.push(CheckResult { ··· 904 906 }); 905 907 Some(did.clone()) 906 908 } 907 - }; 908 - 909 - // Note: explicit_did vs resolved DID mismatch is checked separately as 910 - // resolved_did_matches_flag in the main run() function, not here. 911 - did 909 + } 912 910 } 913 911 914 912 /// Helper to find the signing key in a DID document.