mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
refactor(rust): end route selection with an explicit assert_never return
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
35d77fb88e
commit
15e2f0af16
1 changed files with 1 additions and 2 deletions
|
|
@ -85,8 +85,7 @@ class ComponentExecution:
|
|||
case ExecutionDecision.RUST_REQUIRED:
|
||||
required: Final = binding.native.load()
|
||||
return RouteUnavailable(self.component) if required is None else NativeRoute(required)
|
||||
case _:
|
||||
assert_never(self.decision)
|
||||
return assert_never(self.decision)
|
||||
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue