Skip to content

Commit

Permalink
Changed toml one more time.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Sep 17, 2019
1 parent 231049c commit b9ff7ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ log = "0.4"
sysinfo = "0.9.4"
tokio = "0.2.0-alpha.4"

[dependencies.tui]
[dependencies.tui-temp-fork]
version = "0.6.2"
git = "https://github.com/ClementTsang/tui-rs"
default-features = false
features = ['crossterm']

Expand Down
5 changes: 3 additions & 2 deletions src/canvas.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use tui::{
use tui_temp_fork::{
backend,
layout::{Constraint, Direction, Layout},
style::{Color, Modifier, Style},
widgets::{Axis, Block, Borders, Chart, Dataset, Marker, Row, Table, Widget},
Expand Down Expand Up @@ -28,7 +29,7 @@ pub struct CanvasData {
pub cpu_data : Vec<(String, Vec<(f64, f64)>)>,
}

pub fn draw_data<B : tui::backend::Backend>(terminal : &mut Terminal<B>, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> {
pub fn draw_data<B : backend::Backend>(terminal : &mut Terminal<B>, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> {
let border_style : Style = Style::default().fg(BORDER_STYLE_COLOUR);
let highlighted_border_style : Style = Style::default().fg(HIGHLIGHTED_BORDER_STYLE_COLOUR);

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extern crate failure;

use crossterm::{input, AlternateScreen, InputEvent, KeyEvent, MouseButton, MouseEvent};
use std::{sync::mpsc, thread, time::Duration};
use tui::{backend::CrosstermBackend, Terminal};
use tui_temp_fork::{backend::CrosstermBackend, Terminal};

pub mod app;
mod utils {
Expand Down

0 comments on commit b9ff7ef

Please sign in to comment.