Enable clippy::nonminimal_bool
(#8755)
This PR enables the [`clippy::nonminimal_bool`](https://rust-lang.github.io/rust-clippy/master/index.html#/nonminimal_bool) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
2f876471a1
commit
191fcf67d1
6 changed files with 6 additions and 5 deletions
|
@ -454,7 +454,7 @@ fn subscribe_for_terminal_events(
|
|||
Event::TitleChanged => {
|
||||
cx.emit(ItemEvent::UpdateTab);
|
||||
let terminal = this.terminal().read(cx);
|
||||
if !terminal.task().is_some() {
|
||||
if terminal.task().is_none() {
|
||||
if let Some(foreground_info) = &terminal.foreground_process_info {
|
||||
let cwd = foreground_info.cwd.clone();
|
||||
|
||||
|
@ -897,7 +897,7 @@ impl Item for TerminalView {
|
|||
}
|
||||
|
||||
fn added_to_workspace(&mut self, workspace: &mut Workspace, cx: &mut ViewContext<Self>) {
|
||||
if !self.terminal().read(cx).task().is_some() {
|
||||
if self.terminal().read(cx).task().is_none() {
|
||||
cx.background_executor()
|
||||
.spawn(TERMINAL_DB.update_workspace_id(
|
||||
workspace.database_id(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue