Skip to content

Commit

Permalink
chore: make clippy happy for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Feb 14, 2024
1 parent 6ff79ae commit e86932e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion rocks-bin/src/rockspec/github_metadata.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
///! Retrieves metadata from a given github repository
use eyre::eyre;
use eyre::Result;
use git2::Repository;
Expand Down
6 changes: 3 additions & 3 deletions rocks-bin/src/rockspec/write_rockspec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ pub struct WriteRockspec {
}

fn parse_license_wrapper(s: &str) -> std::result::Result<Option<LicenseId>, String> {
Ok(parse_license(s.to_string()).map_err(|err| err.to_string())?)
parse_license(s.to_string()).map_err(|err| err.to_string())
}

fn parse_version_wrapper(s: &str) -> std::result::Result<LuaDependency, String> {
Ok(parse_version(s.to_string()).map_err(|err| err.to_string())?)
parse_version(s.to_string()).map_err(|err| err.to_string())
}

fn parse_list_wrapper(s: &str) -> std::result::Result<Vec<String>, String> {
Ok(parse_list(s.to_string()).map_err(|err| err.to_string())?)
parse_list(s.to_string()).map_err(|err| err.to_string())
}

fn identity(input: String) -> Result<String> {
Expand Down

0 comments on commit e86932e

Please sign in to comment.