chore: reformat & clippy cleanup (#96)
Clippy is now added to the `check` in the pipeline Co-authored-by: Ian Letourneau <letourneau.ian@gmail.com> Reviewed-on: #96
This commit is contained in:
@@ -51,7 +51,7 @@ pub struct OPNsense {
|
||||
impl From<String> for OPNsense {
|
||||
fn from(content: String) -> Self {
|
||||
yaserde::de::from_str(&content)
|
||||
.map_err(|e| println!("{}", e.to_string()))
|
||||
.map_err(|e| println!("{}", e))
|
||||
.expect("OPNSense received invalid string, should be full XML")
|
||||
}
|
||||
}
|
||||
@@ -59,7 +59,7 @@ impl From<String> for OPNsense {
|
||||
impl OPNsense {
|
||||
pub fn to_xml(&self) -> String {
|
||||
to_xml_str(self)
|
||||
.map_err(|e| error!("{}", e.to_string()))
|
||||
.map_err(|e| error!("{}", e))
|
||||
.expect("OPNSense could not serialize to XML")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user