makes more sense for Apps.app to be called Apps.app

master
rascul 2 years ago
parent 948c98f785
commit 26ec5d25e8

@ -16,7 +16,7 @@ use crate::result::Result;
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct Apps { pub struct Apps {
/// List of apps to start and monitor /// List of apps to start and monitor
app: Vec<App>, apps: Vec<App>,
} }
impl Apps { impl Apps {
@ -50,7 +50,7 @@ impl Apps {
/// Get a list of the apps as a `Vec<App>` /// Get a list of the apps as a `Vec<App>`
pub fn apps(&self) -> Vec<App> { pub fn apps(&self) -> Vec<App> {
self.app.clone() self.apps.clone()
} }
pub fn start(&self) -> (Vec<Proc>, Option<i8>, Poll) { pub fn start(&self) -> (Vec<Proc>, Option<i8>, Poll) {

Loading…
Cancel
Save