From a447ef25b6286333d8238e9f5d46ffa45f8148ab Mon Sep 17 00:00:00 2001 From: James Date: Sun, 23 Jun 2019 20:27:35 +1000 Subject: [PATCH] Clean up codebase, fixing minor errors --- src/frontend/mod.rs | 2 ++ src/frontend/rest/mod.rs | 2 ++ src/frontend/rest/server.rs | 2 ++ src/frontend/rest/services/attributes.rs | 2 ++ src/frontend/rest/services/config.rs | 2 ++ src/frontend/rest/services/default_path.rs | 2 ++ src/frontend/rest/services/exit.rs | 2 ++ src/frontend/rest/services/install.rs | 2 ++ src/frontend/rest/services/installation_status.rs | 2 ++ src/frontend/rest/services/mod.rs | 2 ++ src/frontend/rest/services/packages.rs | 2 ++ src/frontend/rest/services/static_files.rs | 2 ++ src/frontend/rest/services/uninstall.rs | 2 ++ src/frontend/rest/services/update_updater.rs | 2 ++ src/frontend/ui/mod.rs | 2 ++ src/http.rs | 2 +- src/installer.rs | 6 +++--- src/main.rs | 2 +- src/sources/github/mod.rs | 5 +++-- src/tasks/ensure_only_instance.rs | 6 +++--- src/tasks/mod.rs | 12 ++++++------ 21 files changed, 47 insertions(+), 16 deletions(-) diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index 8788a3e..09e08f5 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -1,3 +1,5 @@ +//! frontend/mod.rs +//! //! Provides the frontend interface, including HTTP server. use std::sync::{Arc, RwLock}; diff --git a/src/frontend/rest/mod.rs b/src/frontend/rest/mod.rs index 4563295..19aa914 100644 --- a/src/frontend/rest/mod.rs +++ b/src/frontend/rest/mod.rs @@ -1,3 +1,5 @@ +//! frontend/rest/mod.rs +//! //! Contains the main web server used within the application. pub mod server; diff --git a/src/frontend/rest/server.rs b/src/frontend/rest/server.rs index ef860e3..e970763 100644 --- a/src/frontend/rest/server.rs +++ b/src/frontend/rest/server.rs @@ -1,3 +1,5 @@ +//! frontend/rest/server.rs +//! //! Contains the over-arching server object + methods to manipulate it. use frontend::rest::services::WebService; diff --git a/src/frontend/rest/services/attributes.rs b/src/frontend/rest/services/attributes.rs index ef3063d..267d1c4 100644 --- a/src/frontend/rest/services/attributes.rs +++ b/src/frontend/rest/services/attributes.rs @@ -1,3 +1,5 @@ +//! frontend/rest/services/attributes.rs +//! //! The /api/attr call returns an executable script containing session variables. use frontend::rest::services::default_future; diff --git a/src/frontend/rest/services/config.rs b/src/frontend/rest/services/config.rs index 3dc3e16..8056f0f 100644 --- a/src/frontend/rest/services/config.rs +++ b/src/frontend/rest/services/config.rs @@ -1,3 +1,5 @@ +//! frontend/rest/services/config.rs +//! //! The /api/config call returns the current installer framework configuration. //! //! This endpoint should be usable directly from a