async fn running_service_version(sd: &Systemd, service: &str) -> Result<String> {
        let set = ServiceSet::current(sd).await?;
        set.get(service)
            .with_context(|| format!("{} was not discovered", service))
            .map(|uuid| uuid.to_simple().to_string())
    }
// In the near future we probably want to assert that the running state of
// the system matches what we expect before/during/after transactions, but
// for now let's not do that and only check versions during test
In the near future we probably want to assert that the running state of
the system matches what we expect before/during/after transactions, but
for now let's not do that and only check versions during test
In the near future we probably want to assert that the running state of the system matches what we expect before / during / after transactions but for now let ' s not do that and only check versions during test
async fn running_service_version(sd: &Systemd, service: &str) -> Result<String> {
        let set = ServiceSet::current(sd).await?;
        set.get(service)
            .with_context(|| format!("{} was not discovered", service))
            .map(|uuid| uuid.to_simple().to_string())
    }
async fn running_service_version ( sd : & Systemd , service : & str ) -> Result < String > { let set = ServiceSet :: current ( sd ) . await ? ; set . get ( service ) . with_context ( | | format ! ( " " service ) ) . map ( | uuid | uuid . to_simple ( ) . to_string ( ) ) }
In the near future we probably want to assert that the running state of
the system matches what we expect before/during/after transactions, but
for now let's not do that and only check versions during test
In the near future we probably want to assert that the running state of the system matches what we expect before / during / after transactions but for now let ' s not do that and only check versions during test
sd
&Systemd
service
&str
sd
&Systemd
service
&str