From c1d8cc4b80f44a5eaeb932549d818e3516181234 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Wed, 8 Mar 2023 17:38:07 -0800 Subject: [PATCH] added bacon --- shell.nix | 6 ++++-- src/main.rs | 9 +++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/shell.nix b/shell.nix index 6d48b6f..d823e74 100644 --- a/shell.nix +++ b/shell.nix @@ -16,11 +16,13 @@ pkgs.mkShell { sqliteman pkg-config alsa-lib + rust-analyzer ]; RUST_BACKTRACE = 1; - shellHook = '' - alias gust=/home/nixolas/Documents/Gust/target/debug/gust + shellHook = '' + cargo install --locked bacon + export PATH=$HOME/.cargo/bin:$PATH ''; } diff --git a/src/main.rs b/src/main.rs index 88f18db..3dfb4a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,4 @@ -use clap::{Parser, ValueEnum}; -use message_types::{itemtag_to_partial, PartialTag, ServerResponse, UIRequest}; -use serde_json; -use table_print::Table; +ut::Table; use termsize; use tungstenite::{connect, Message}; use url::Url; @@ -57,7 +54,7 @@ struct CliArgs { fn main() { let cli = CliArgs::parse(); - let (mut socket, _resp) = connect( + let (mut socket, _resp) = connect( Url::parse(format!("ws://{}:{}", cli.hostname.unwrap(), cli.port.unwrap()).as_str()) .unwrap(), ) @@ -222,4 +219,4 @@ impl ServerResponse { fn test_partialtag() { let partial_tag = parse_to_partialtag("title".to_string(), "Rocker Song".to_string()).unwrap(); assert_eq!(partial_tag.title, Some("Rocker Song".to_string())) -} \ No newline at end of file +}