diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml index f89161d92..cb6a59f9f 100644 --- a/.github/workflows/code_style.yml +++ b/.github/workflows/code_style.yml @@ -89,6 +89,8 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.12" + - name: Validate panic checker parser logic + run: python3 scripts/check_no_panics.py --self-test - name: Check for .unwrap(), .expect(), assert!() in production code run: | BASE="${{ github.event.pull_request.base.sha }}" diff --git a/src/registry/manifest.rs b/src/registry/manifest.rs index e70f1f312..5933f0c01 100644 --- a/src/registry/manifest.rs +++ b/src/registry/manifest.rs @@ -193,12 +193,11 @@ impl ExtensionManifest { Some("dcr") | None => AuthHint::Dcr, Some("none") => AuthHint::None, Some(other) if other.starts_with("oauth_pre_configured:") => { - AuthHint::OAuthPreConfigured { - setup_url: other - .strip_prefix("oauth_pre_configured:") - .unwrap_or("") - .to_string(), - } + let setup_url = other + .strip_prefix("oauth_pre_configured:") + .unwrap_or("") + .to_string(); + AuthHint::OAuthPreConfigured { setup_url } } _ => AuthHint::Dcr, };