tsk-80: Formatting code
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
pub struct Api {
|
pub struct Api {
|
||||||
pub url: String,
|
pub url: String,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
pub struct Flags {
|
pub struct Flags {
|
||||||
pub flag: String,
|
pub flag: String,
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ use std::default::Default;
|
|||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
pub struct IcarusAction {
|
pub struct IcarusAction {
|
||||||
pub action: String,
|
pub action: String,
|
||||||
|
|||||||
+6
-14
@@ -2,19 +2,11 @@ pub fn o_to_string(val: &std::ffi::OsString) -> Result<std::string::String, std:
|
|||||||
match val.clone().into_string() {
|
match val.clone().into_string() {
|
||||||
Ok(value) => Ok(value),
|
Ok(value) => Ok(value),
|
||||||
Err(err) => match err.into_string() {
|
Err(err) => match err.into_string() {
|
||||||
Ok(res) => {
|
Ok(res) => Err(std::io::Error::other(res.to_string())),
|
||||||
Err(std::io::Error::other(res.to_string()))
|
Err(err) => match err.to_str() {
|
||||||
}
|
Some(err) => Err(std::io::Error::other(err)),
|
||||||
Err(err) => {
|
None => Err(std::io::Error::other("Undefined error")),
|
||||||
match err.to_str() {
|
},
|
||||||
Some(err) => {
|
},
|
||||||
Err(std::io::Error::other(err))
|
|
||||||
}
|
|
||||||
None => {
|
|
||||||
Err(std::io::Error::other("Undefined error"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user