Fix clippy warnings in beancount-types
Dependencies
- [2]
R524JUUEImplement metadata & price directives - [3]
YBARPI2BMake account templates owned - [4]
W3MWSSJ7Add a templating engine for accounts
Change contents
- replacement in common/beancount-types/src/metadata/link.rs at line 57
type Err = LinkError;type Err = Error; - replacement in common/beancount-types/src/metadata/link.rs at line 66
type Error = LinkError;type Error = Error; - replacement in common/beancount-types/src/metadata/link.rs at line 70
ensure!(is_valid_link_name(&name), LinkSnafu { name });ensure!(is_valid_link_name(&name), Snafu { name }); - replacement in common/beancount-types/src/metadata/link.rs at line 77
pub struct LinkError {pub struct Error { - replacement in common/beancount-types/src/metadata/link.rs at line 111
type Error = LinkError;type Error = Error; - replacement in common/beancount-types/src/metadata/link.rs at line 115
ensure!(is_valid_link_name(name), LinkSnafu { name });ensure!(is_valid_link_name(name), Snafu { name }); - edit in common/beancount-types/src/metadata/kv.rs at line 27
/// Create a new `Key` from a [`String`] without checking the format.////// # Safety////// This function assumes that the given name is a valid `Key`. - edit in common/beancount-types/src/metadata/kv.rs at line 116
/// Create a new `Ky` from a [`str`] without checking the format.////// # Safety////// This function assumes that the given name is a valid `Ky`. - edit in common/beancount-types/src/account/template.rs at line 81
/// Parse a [`str`] into a template.////// # Errors////// This function will return an error if the given `str` is not a valid template./// This happens, when////// * the template does not start with a valid base account;/// * the template uses an unknown selector. - replacement in common/beancount-types/src/account/template.rs at line 165
pub(crate) enum Segment<Selector> {enum Segment<Selector> { - edit in common/beancount-types/src/account/template.rs at line 219
#[allow(clippy::manual_try_fold, /* reason = "we want to collect multiple errors here" */)]