- Removing fluff from config structure

This commit is contained in:
shockrah 2021-04-05 17:37:43 -07:00
parent 0bee002164
commit adea888b21

View File

@ -33,15 +33,6 @@ pub struct ConfigFile {
impl ConfigFile {
pub fn update_jwt(&mut self, url: String, jwt: String) {
for servermeta in self.servers.iter_mut() {
if servermeta.server.url == url {
servermeta.user.jwt = Some(jwt);
break
}
}
}
pub fn save(&self, path: String) -> std::io::Result<()>{
use std::io::prelude::Write;
use std::fs::File;