The merged pull request uses name[4..].parse()? + 1 in the pub fn new(config: &Configuration) -> Result<Self>, which makes the inferred type for the generic type of parse is (), which does not implement add<i32>.
|
52 | name[4..].parse()? + 1
| ^^^^^ the trait `FromStr` is not implemented for `()`
The merged pull request uses
name[4..].parse()? + 1
in thepub fn new(config: &Configuration) -> Result<Self>
, which makes the inferred type for the generic type ofparse
is()
, which does not implementadd<i32>
.