Skip to content

Commit

Permalink
Fixed failure in test
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-rowe committed Sep 14, 2019
1 parent df88359 commit 609552b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ impl WMIConnection {
/// Creates a connection with the given namespace path.
///
/// ```edition2018
/// let wmi_con = WMIConnection::with_namespace_path("ROOT\\Microsoft\\Windows\\Storage", com_con.into())?;
/// # fn main() -> Result<(), failure::Error> {
/// # use wmi::*;
/// # use serde::Deserialize;
/// let wmi_con = WMIConnection::with_namespace_path("ROOT\\Microsoft\\Windows\\Storage", COMLibrary::new()?.into())?;
/// # Ok(())
/// # }
/// ```
pub fn with_namespace_path(namespace_path: &str, com_lib: Rc<COMLibrary>) -> Result<Self, Error> {
let mut instance = Self {
Expand Down

0 comments on commit 609552b

Please sign in to comment.