Skip to content

Commit 9a1384b

Browse files
committed
Make rust-src to be in devshell
1 parent bacb6a6 commit 9a1384b

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
inherit system;
2323
overlays = [(import rust-overlay)];
2424
};
25-
craneLib = (crane.mkLib pkgs).overrideToolchain (p: p.rust-bin.nightly.latest.default.override {});
25+
craneLib = (crane.mkLib pkgs).overrideToolchain (p: p.rust-bin.nightly.latest.default.override {extensions = ["rust-src"];});
2626

2727
commonArgs = {
2828
src = pkgs.lib.cleanSource ./.;

src/fetcher.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ use std::{
1313
atomic::{AtomicBool, Ordering},
1414
Arc,
1515
},
16-
thread::sleep,
17-
time::Duration,
1816
};
1917

2018
use crate::{
21-
evaluator::{proto::HoverRequest, Evaluator, LockFlakeRequest, LockFlakeResponse},
22-
flakes::get_flake_inputs,
19+
evaluator::{proto::HoverRequest, Evaluator, LockFlakeResponse},
2320
syntax::escape_string,
2421
TOKIO_RUNTIME,
2522
};

src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@ use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilte
2727
lazy_static! {
2828
static ref TOKIO_RUNTIME: Runtime = tokio::runtime::Builder::new_multi_thread()
2929
.thread_name("tokio")
30-
// .max_blocking_threads(MAX_BLOCKING_THREADS)
3130
.enable_all()
3231
.build()
3332
.unwrap();
3433
}
3534

3635
fn main() -> Result<()> {
37-
// let console_layer = console_subscriber::spawn();
3836
tracing_subscriber::registry()
39-
// .with(console_layer)
4037
.with(
4138
tracing_subscriber::fmt::layer()
4239
.with_ansi(false)

0 commit comments

Comments
 (0)