fix clippy lints
This commit is contained in:
@@ -199,7 +199,7 @@ fn read_slot(input: &str) -> Option<Result<atom::Slot, Error>> {
|
||||
fn read_homepage(input: &str) -> Option<String> {
|
||||
input
|
||||
.lines()
|
||||
.find_map(|line| line.strip_prefix("HOMEPAGE=").map(|s| s.to_string()))
|
||||
.find_map(|line| line.strip_prefix("HOMEPAGE=").map(str::to_string))
|
||||
}
|
||||
|
||||
fn read_src_uri(input: &str) -> Option<Result<Vec<Depend<SrcUri>>, Error>> {
|
||||
@@ -272,7 +272,7 @@ fn read_license(input: &str) -> Option<Result<Vec<Depend<License>>, Error>> {
|
||||
fn read_description(input: &str) -> Option<String> {
|
||||
input
|
||||
.lines()
|
||||
.find_map(|line| line.strip_prefix("DESCRIPTION=").map(|s| s.to_string()))
|
||||
.find_map(|line| line.strip_prefix("DESCRIPTION=").map(str::to_string))
|
||||
}
|
||||
|
||||
fn read_depend(input: &str) -> Option<Result<Vec<Depend<Atom>>, Error>> {
|
||||
|
||||
Reference in New Issue
Block a user