// Copyright 2018-2025 the Deno authors. MIT license. use std::convert::Infallible; pub trait InfallibleResultExt { fn unwrap_infallible(self) -> T; } impl InfallibleResultExt for Result { fn unwrap_infallible(self) -> T { match self { Ok(value) => value, Err(never) => match never {}, } } }