remove unused struct

master
CptCaptain 5 years ago
parent 9a88fd8fcf
commit c35b5c2aa9
  1. 7
      src/main.rs

@ -1,6 +1,5 @@
use serde::Deserialize;
use serde_json::Value;
use std::collections::HashMap;
use std::env;
extern crate reqwest;
@ -17,12 +16,6 @@ struct Status {
order: u8,
}
#[derive(Deserialize, Debug)]
struct Incidents {
count: u16,
days: Vec<HashMap<String, String>>,
}
fn get_incidents() -> Result<(), reqwest::Error> {
let res = reqwest::blocking::get(INCIDENTS_URL)?;
let data: Value = res.json()?;

Loading…
Cancel
Save