- Removing fluff from config structure
This commit is contained in:
parent
0bee002164
commit
adea888b21
@ -33,15 +33,6 @@ pub struct ConfigFile {
|
|||||||
|
|
||||||
|
|
||||||
impl 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<()>{
|
pub fn save(&self, path: String) -> std::io::Result<()>{
|
||||||
use std::io::prelude::Write;
|
use std::io::prelude::Write;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
Loading…
Reference in New Issue
Block a user