diff options
| author | henil <dedaniahenil@gmail.com> | 2021-02-10 15:49:41 +0530 |
|---|---|---|
| committer | henil <dedaniahenil@gmail.com> | 2021-02-10 15:49:41 +0530 |
| commit | 436b4ee19ea7c044ec9af4c24a05f4d3fb8a3e8a (patch) | |
| tree | ee87ed2c634001b9567da3a371b871cf71a14cdb | |
| parent | And from Goodbye message (diff) | |
| download | sl0ppij-436b4ee19ea7c044ec9af4c24a05f4d3fb8a3e8a.tar.gz sl0ppij-436b4ee19ea7c044ec9af4c24a05f4d3fb8a3e8a.tar.xz sl0ppij-436b4ee19ea7c044ec9af4c24a05f4d3fb8a3e8a.zip | |
fix: Some warnings
| -rw-r--r-- | build.rs | 6 | ||||
| -rw-r--r-- | src/client/tab.rs | 3 | ||||
| -rw-r--r-- | src/common/wasm_vm.rs | 3 | ||||
| -rw-r--r-- | src/main.rs | 2 |
4 files changed, 8 insertions, 6 deletions
@@ -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 diff --git a/src/client/tab.rs b/src/client/tab.rs index b7f0e5c2..3b508a82 100644 --- a/src/client/tab.rs +++ b/src/client/tab.rs @@ -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); } diff --git a/src/common/wasm_vm.rs b/src/common/wasm_vm.rs index 5b4c891d..fcc739cb 100644 --- a/src/common/wasm_vm.rs +++ b/src/common/wasm_vm.rs @@ -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, diff --git a/src/main.rs b/src/main.rs index e02abd5c..50c0b6f3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, }; |
