On reformate le code ;-)

This commit is contained in:
2025-10-01 07:42:16 +02:00
parent c2390893b6
commit a23d9bf845
42 changed files with 553 additions and 289 deletions

View File

@@ -2,12 +2,11 @@ use xmltree::{Element, EmitterConfig};
use crate::UpnpObjectType;
pub trait UpnpObject {
fn as_upnp_object_type(&self) -> &UpnpObjectType;
fn to_xml_element(&self) -> Element;
fn get_name(&self)-> &String {
fn get_name(&self) -> &String {
return &self.as_upnp_object_type().name;
}
@@ -35,5 +34,4 @@ pub trait UpnpObject {
xml_string
}
}
}