We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
impl WriteBase32 for Vec<u5>
1 parent a565895 commit f9000a4Copy full SHA for f9000a4
Cargo.toml
@@ -14,3 +14,4 @@ license = "MIT"
14
strict = []
15
16
[dependencies]
17
+void = "1"
src/lib.rs
@@ -51,6 +51,9 @@
51
#![deny(unused_mut)]
52
#![cfg_attr(feature = "strict", deny(warnings))]
53
54
+extern crate void;
55
+use void::Void;
56
+
57
use std::borrow::Cow;
58
use std::{error, fmt};
59
@@ -208,7 +211,7 @@ pub trait FromBase32: Sized {
208
211
}
209
212
210
213
impl WriteBase32 for Vec<u5> {
- type Err = ();
214
+ type Err = Void;
215
216
fn write(&mut self, data: &[u5]) -> Result<(), Self::Err> {
217
self.extend_from_slice(data);
0 commit comments