Skip to content

Commit 679508b

Browse files
author
liv
committed
ah well it was worth a try
1 parent ad26a6d commit 679508b

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "rustlings"
33
version = "0.1.0"
44
authors = ["olivia <olivia@fastmail.com>"]
5+
edition = "2018"
56

67
[dependencies]
78
clap = "2.32.0"

src/main.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
#[macro_use]
2-
extern crate clap;
3-
extern crate console;
4-
extern crate indicatif;
5-
extern crate syntect;
6-
extern crate notify;
7-
8-
use clap::{App, Arg, SubCommand};
1+
use clap::{App, Arg, SubCommand, crate_version};
92
use console::{style, Emoji};
103
use indicatif::ProgressBar;
114
use syntect::easy::HighlightFile;
125
use syntect::parsing::SyntaxSet;
136
use syntect::highlighting::{ThemeSet, Style};
14-
use syntect::util::{as_24_bit_terminal_escaped, LinesWithEndings};
7+
use syntect::util::{as_24_bit_terminal_escaped};
158
use std::fs::remove_file;
169
use std::io::BufRead;
1710
use std::process::Command;
18-
use std::fs::read_to_string;
1911
use std::sync::mpsc::channel;
2012
use std::time::Duration;
2113
use notify::DebouncedEvent;

0 commit comments

Comments
 (0)