diff --git a/rust/agama-cli/src/profile.rs b/rust/agama-cli/src/profile.rs index c264e777d4..d2f0aa559b 100644 --- a/rust/agama-cli/src/profile.rs +++ b/rust/agama-cli/src/profile.rs @@ -38,7 +38,7 @@ pub enum ProfileCommands { /// Evaluate a profile, injecting the hardware information from D-Bus /// /// For an example of Jsonnet-based profile, see - /// https://github.com/openSUSE/agama/blob/master/rust/agama-lib/share/examples/profile.jsonnet + /// Evaluate { /// Path to jsonnet file. path: PathBuf, diff --git a/rust/agama-cli/src/questions.rs b/rust/agama-cli/src/questions.rs index 6d0d9c05a8..a5bceab40a 100644 --- a/rust/agama-cli/src/questions.rs +++ b/rust/agama-cli/src/questions.rs @@ -15,7 +15,7 @@ pub enum QuestionsCommands { /// mode or change the answer in automatic mode. /// /// Please check Agama documentation for more details and examples: - /// https://github.com/openSUSE/agama/blob/master/doc/questions.md + /// Answers { /// Path to a file containing the answers in YAML format. path: String, diff --git a/rust/agama-lib/src/auth.rs b/rust/agama-lib/src/auth.rs index ab48f8a399..b2da8b288c 100644 --- a/rust/agama-lib/src/auth.rs +++ b/rust/agama-lib/src/auth.rs @@ -166,7 +166,7 @@ impl Display for AuthToken { /// Claims that are included in the token. /// -/// See https://datatracker.ietf.org/doc/html/rfc7519 for reference. +/// See for reference. #[derive(Debug, Serialize, Deserialize)] pub struct TokenClaims { pub exp: i64, diff --git a/rust/agama-lib/src/base_http_client.rs b/rust/agama-lib/src/base_http_client.rs index 0c14a7a5ba..6467ec6bc3 100644 --- a/rust/agama-lib/src/base_http_client.rs +++ b/rust/agama-lib/src/base_http_client.rs @@ -231,7 +231,7 @@ impl BaseHTTPClient { } const NO_TEXT: &'static str = "(Failed to extract error text from HTTP response)"; - /// Builds [`BackendError`] from response. + /// Builds [`ServiceError::BackendError`] from response. /// /// It contains also processing of response body, that is why it has to be async. /// diff --git a/rust/agama-lib/src/dbus.rs b/rust/agama-lib/src/dbus.rs index 6ff2e6eab4..3d07027a5e 100644 --- a/rust/agama-lib/src/dbus.rs +++ b/rust/agama-lib/src/dbus.rs @@ -58,7 +58,7 @@ macro_rules! property_from_dbus { /// NOTE: we could follow a different approach like building our own type (e.g. /// using the newtype idiom) and offering a better API. /// -/// * `source`: hash map containing non-onwed values ([zbus::zvariant::Value]). +/// * `source`: hash map containing non-onwed values ([enum@zbus::zvariant::Value]). pub fn to_owned_hash(source: &HashMap<&str, Value<'_>>) -> HashMap { let mut owned = HashMap::new(); for (key, value) in source.iter() { diff --git a/rust/agama-lib/src/lib.rs b/rust/agama-lib/src/lib.rs index 3dfffd3e07..1bbc4c48c8 100644 --- a/rust/agama-lib/src/lib.rs +++ b/rust/agama-lib/src/lib.rs @@ -3,7 +3,7 @@ //! This library offers an API to interact with Agama services. At this point, the library allows: //! //! * Reading and writing [installation settings](install_settings::InstallSettings). -//! * Monitoring the [progress](progress). +//! * Monitoring the [progress]. //! * Triggering actions through the [manager] (e.g., starting installation). //! //! ## Handling installation settings diff --git a/rust/agama-locale-data/src/keyboard/xkb_config_registry.rs b/rust/agama-locale-data/src/keyboard/xkb_config_registry.rs index a462f5cffe..62ff1cea88 100644 --- a/rust/agama-locale-data/src/keyboard/xkb_config_registry.rs +++ b/rust/agama-locale-data/src/keyboard/xkb_config_registry.rs @@ -1,6 +1,6 @@ //! This module aims to read the information in the X Keyboard Configuration Database. //! -//! https://freedesktop.org/Software/XKeyboardConfig +//! use quick_xml::de::from_str; use serde::Deserialize;