diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..07d694f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "workbench.colorCustomizations": { + "activityBar.background": "#392B11", + "titleBar.activeBackground": "#503D17", + "titleBar.activeForeground": "#FDFBF7" + } +} diff --git a/onvif/examples/camera.rs b/onvif/examples/camera.rs index e0f38ef..b49585f 100644 --- a/onvif/examples/camera.rs +++ b/onvif/examples/camera.rs @@ -111,7 +111,8 @@ impl Clients { if !url.as_str().starts_with(base_uri.as_str()) { return Err(format!( "Service URI {} is not within base URI {}", - &s.x_addr, &base_uri + url.as_str(), + &base_uri )); } let svc = Some( @@ -121,10 +122,11 @@ impl Clients { ); match s.namespace.as_str() { "http://www.onvif.org/ver10/device/wsdl" => { - if s.x_addr != devicemgmt_uri.as_str() { + if url.as_str() != devicemgmt_uri.as_str() { return Err(format!( "advertised device mgmt uri {} not expected {}", - &s.x_addr, &devicemgmt_uri + url.as_str(), + &devicemgmt_uri )); } }