mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
fix some clippy workarounds
This commit is contained in:
parent
8e54bfd364
commit
0e2262882b
3 changed files with 0 additions and 19 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue