This commit is contained in:
daxpedda
2022-12-16 14:14:53 -08:00
committed by GitHub
parent a0cab10663
commit 7da97be1db
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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) => {