mirror of https://github.com/zcash/orchard.git
Partially apply suggestions from code review
Co-authored-by: str4d <thestr4d@gmail.com>
This commit is contained in:
parent
938b122814
commit
4296860a86
|
@ -12,10 +12,11 @@ and this project adheres to Rust's notion of
|
||||||
- `OutputsDisabled`
|
- `OutputsDisabled`
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- `orchard::builder::Builder::{add_spend, add_output}` now use
|
- `orchard::builder`:
|
||||||
concrete error types instead of `&'static str`s.
|
- `Builder::{add_spend, add_output}` now use concrete error types instead of
|
||||||
- `orchard::builder::Error` is now `BuildError` to differentiate from
|
`&'static str`s.
|
||||||
new error types
|
- `Error` has been renamed to `BuildError` to differentiate from new error
|
||||||
|
types.
|
||||||
|
|
||||||
## [0.3.0] - 2022-10-19
|
## [0.3.0] - 2022-10-19
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -295,7 +295,7 @@ impl Builder {
|
||||||
memo: Option<[u8; 512]>,
|
memo: Option<[u8; 512]>,
|
||||||
) -> Result<(), OutputsDisabled> {
|
) -> Result<(), OutputsDisabled> {
|
||||||
if !self.flags.outputs_enabled() {
|
if !self.flags.outputs_enabled() {
|
||||||
return Err(());
|
return Err(OutputsDisabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.recipients.push(RecipientInfo {
|
self.recipients.push(RecipientInfo {
|
||||||
|
|
Loading…
Reference in New Issue