This commit is contained in:
Wez Furlong committed 2019-06-14 20:49:49 -07:00
1 parent 99d6c12532
commit 797c7bb41a
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -482,7 +482,7 @@ fn safely_create_sock_path(sock_path: &str) -> Result<UnixListener, Error> {
#[cfg(unix)]
{
if !std::env::var_os("WEZTERM_SKIP_MUX_SOCK_PERMISSIONS_CHECK").is_some() {
if std::env::var_os("WEZTERM_SKIP_MUX_SOCK_PERMISSIONS_CHECK").is_none() {
// Let's be sure that the ownership looks sane
let meta = sock_dir.symlink_metadata()?;
+3 -1
View File
@@ -137,6 +137,8 @@ impl Tab for ClientTab {
panic!("ClientTab::advance_bytes not impl");
}
// clippy is wrong: the borrow checker hates returning the value directly
#[allow(clippy::let_and_return)]
fn is_dead(&self) -> bool {
let renderable = self.renderable.borrow();
let dead = *renderable.dead.borrow();
@@ -238,7 +240,7 @@ impl Renderable for RenderableState {
}
fn has_dirty_lines(&self) -> bool {
if let Err(_) = self.poll() {
if self.poll().is_err() {
*self.dead.borrow_mut() = true;
}