fix some clippy workarounds

This commit is contained in:
extrawurst 2022-08-20 11:52:13 +02:00
parent 8e54bfd364
commit 0e2262882b
3 changed files with 0 additions and 19 deletions

View file

@ -27,8 +27,6 @@ impl CommitId {
}
}
//TODO: remove once clippy fixed: https://github.com/rust-lang/rust-clippy/issues/6983
#[allow(clippy::wrong_self_convention)]
impl ToString for CommitId {
fn to_string(&self) -> String {
self.0.to_string()

View file

@ -171,8 +171,6 @@ mod tests {
let repo_path: &RepoPath =
&root.as_os_str().to_str().unwrap().into();
//TODO:
// env::set_current_dir(repo_path).unwrap();
repo.remote(DEFAULT_REMOTE_NAME, "http://user@github.com")
.unwrap();
@ -187,8 +185,6 @@ mod tests {
let repo_path: &RepoPath =
&root.as_os_str().to_str().unwrap().into();
//TODO:
// env::set_current_dir(repo_path).unwrap();
repo.remote(DEFAULT_REMOTE_NAME, "git@github.com:user/repo")
.unwrap();
@ -224,9 +220,6 @@ mod tests {
let repo_path: &RepoPath =
&root.as_os_str().to_str().unwrap().into();
//TODO:
// env::set_current_dir(repo_path).unwrap();
need_username_password(repo_path).unwrap();
}
@ -238,8 +231,6 @@ mod tests {
let repo_path: &RepoPath =
&root.as_os_str().to_str().unwrap().into();
//TODO:
// env::set_current_dir(repo_path).unwrap();
repo.remote(
DEFAULT_REMOTE_NAME,
"http://user:pass@github.com",
@ -263,8 +254,6 @@ mod tests {
let repo_path: &RepoPath =
&root.as_os_str().to_str().unwrap().into();
//TODO:
// env::set_current_dir(repo_path).unwrap();
repo.remote(DEFAULT_REMOTE_NAME, "http://user@github.com")
.unwrap();
@ -284,9 +273,6 @@ mod tests {
let repo_path: &RepoPath =
&root.as_os_str().to_str().unwrap().into();
//TODO: not needed anymore?
// env::set_current_dir(repo_path).unwrap();
extract_username_password(repo_path).unwrap();
}
}

View file

@ -245,9 +245,6 @@ impl From<bool> for EventState {
/// base component trait
pub trait Component {
///
//TODO: remove once workaround for clippy bug:
//<https://github.com/rust-lang/rust-clippy/issues/8366>
#[allow(clippy::ptr_arg)]
fn commands(
&self,
out: &mut Vec<CommandInfo>,