fix: Some warnings

This commit is contained in:
henil 2021-02-10 15:49:41 +05:30
parent e52e9b1b37
commit 436b4ee19e
4 changed files with 8 additions and 6 deletions

View File

@ -38,7 +38,8 @@ fn main() {
let alt_target = manifest_dir.join("target/tiles");
for project in members {
let path = manifest_dir.join(project.as_str().unwrap());
set_current_dir(&path);
// Should be able to change directory to continue build process
set_current_dir(&path).unwrap();
// FIXME: This is soul-crushingly terrible, but I can't keep the values alive long enough
if var("PROFILE").unwrap() == "release" {
@ -58,7 +59,8 @@ fn main() {
.unwrap();
}
}
set_current_dir(&starting_dir);
// Should be able to change directory to continue build process
set_current_dir(&starting_dir).unwrap();
if var("PROFILE").unwrap() == "release" {
// FIXME: Deduplicate this with the initial walk all .rs pattern

View File

@ -1905,7 +1905,8 @@ impl Tab {
debug_log_to_file(format!(
"set_pane_invisible_borders: {:?}",
invisible_borders
));
))
.expect("Must be able to write to log file");
if let Some(pane) = self.panes.get_mut(&id) {
pane.set_invisible_borders(invisible_borders);
}

View File

@ -4,8 +4,7 @@ use std::{
};
use wasmer::{imports, Function, ImportObject, Store, WasmerEnv};
use wasmer_wasi::WasiEnv;
use crate::utils::logging::debug_log_to_file;
// use crate::utils::logging::debug_log_to_file;
use super::{
input::handler::get_help, pty_bus::PtyInstruction, screen::ScreenInstruction, AppInstruction,

View File

@ -8,7 +8,7 @@ mod client;
use client::{boundaries, layout, panes, tab};
use common::{
command_is_executing, errors, ipc, os_input_output, pty_bus, screen, start, utils, wasm_vm,
command_is_executing, errors, os_input_output, pty_bus, screen, start, utils, wasm_vm,
ApiCommand,
};