Fix CI (#298)
This commit is contained in:
@@ -149,7 +149,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
- run: rustup target add ${{ matrix.target }}
|
||||
- run: cargo build --verbose --target=${{ matrix.target }} --no-default-features --features ${{ matrix.frontend_feature }} --features ${{ matrix.backend_feature }}
|
||||
- run: cargo build --verbose --target=${{ matrix.target }} --no-default-features --features ${{ matrix.frontend_feature }},${{ matrix.backend_feature }}
|
||||
|
||||
benches:
|
||||
name: cargo bench compilation
|
||||
|
||||
+2
-2
@@ -87,7 +87,7 @@ impl<T: Debug> Debug for InternalError<T> {
|
||||
impl<T: Error> Error for InternalError<T> {}
|
||||
|
||||
impl InternalError {
|
||||
/// Convert `InternalError<Infallible>` into `InternalError<T>
|
||||
/// Convert `InternalError<Infallible>` into `InternalError<T>`
|
||||
pub fn into_custom<T>(self) -> InternalError<T> {
|
||||
match self {
|
||||
Self::Custom(_) => unreachable!(),
|
||||
@@ -184,7 +184,7 @@ impl<T> From<::core::convert::Infallible> for ProtocolError<T> {
|
||||
}
|
||||
|
||||
impl ProtocolError {
|
||||
/// Convert `ProtocolError<Infallible>` into `ProtocolError<T>
|
||||
/// Convert `ProtocolError<Infallible>` into `ProtocolError<T>`
|
||||
pub fn into_custom<T>(self) -> ProtocolError<T> {
|
||||
match self {
|
||||
Self::LibraryError(internal_error) => {
|
||||
|
||||
Reference in New Issue
Block a user