Skip to content

Commit 4c5aec6

Browse files
Remove unused imports and use .ok() to make cargo check pass.
1 parent 7f058d9 commit 4c5aec6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn render_articles(articles: &Vec<Article>) {
1616

1717
#[tokio::main]
1818
async fn main() -> Result<(), Box<dyn Error>> {
19-
dotenv();
19+
dotenv().ok();
2020

2121
let api_key = std::env::var("API_KEY")?;
2222

src/theme.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crossterm::style::Color::{AnsiValue, Green, Rgb, Yellow};
2-
use termimad::{rgb, MadSkin, StyledChar};
1+
use crossterm::style::Color::{Rgb, Yellow};
2+
use termimad::{MadSkin, StyledChar};
33

44
pub fn default() -> MadSkin {
55
let mut skin = MadSkin::default();

0 commit comments

Comments
 (0)