Partially apply suggestions from code review

Co-authored-by: str4d <thestr4d@gmail.com>
This commit is contained in:
Gygaxis Vainhardt 2022-12-08 16:36:54 -04:00 committed by GitHub
parent 938b122814
commit 4296860a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -12,10 +12,11 @@ and this project adheres to Rust's notion of
- `OutputsDisabled`
### Changed
- `orchard::builder::Builder::{add_spend, add_output}` now use
concrete error types instead of `&'static str`s.
- `orchard::builder::Error` is now `BuildError` to differentiate from
new error types
- `orchard::builder`:
- `Builder::{add_spend, add_output}` now use concrete error types instead of
`&'static str`s.
- `Error` has been renamed to `BuildError` to differentiate from new error
types.
## [0.3.0] - 2022-10-19
### Added

View File

@ -295,7 +295,7 @@ impl Builder {
memo: Option<[u8; 512]>,
) -> Result<(), OutputsDisabled> {
if !self.flags.outputs_enabled() {
return Err(());
return Err(OutputsDisabled);
}
self.recipients.push(RecipientInfo {