Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl WriteBase32 for Vec<u5> show cannot fail #43

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -71,7 +71,7 @@ use alloc::borrow::Cow;
#[cfg(any(feature = "std", test))]
use std::borrow::Cow;

use core::{fmt, mem};
use core::{convert::Infallible, fmt, mem};

/// Integer in the range `0..32`
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default, PartialOrd, Ord, Hash)]
Expand Down Expand Up @@ -232,7 +232,7 @@ pub trait FromBase32: Sized {
}

impl WriteBase32 for Vec<u5> {
type Err = ();
type Err = Infallible;

fn write(&mut self, data: &[u5]) -> Result<(), Self::Err> {
self.extend_from_slice(data);
Expand Down