From 6d941407fe2331f5b3fe2c3b7101d02c23790702 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 12 Jan 2026 20:17:40 +0100 Subject: [PATCH] Fix broken rustdoc links --- nix-bindings-expr/src/eval_state.rs | 18 +++++++++--------- nix-bindings-expr/src/value.rs | 4 ++-- nix-bindings-store/src/store.rs | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/nix-bindings-expr/src/eval_state.rs b/nix-bindings-expr/src/eval_state.rs index 04749a9..44b6945 100644 --- a/nix-bindings-expr/src/eval_state.rs +++ b/nix-bindings-expr/src/eval_state.rs @@ -660,9 +660,9 @@ impl EvalState { /// /// Returns [`Err`] if evaluation failed or the value is not an attribute set. /// - /// Returns [`Ok(None)`] if the attribute is not present. + /// Returns `Ok(None)` if the attribute is not present. /// - /// Returns [`Ok(Some(value))`] if the attribute is present. + /// Returns `Ok(Some(value))` if the attribute is present. #[doc(alias = "nix_get_attr_byname")] #[doc(alias = "get_attr_byname")] #[doc(alias = "get_attr_opt")] @@ -712,11 +712,11 @@ impl EvalState { /// Extracts an element from a [list][`ValueType::List`] Nix value by index. /// /// Forces [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) and verifies the value is a list. - /// Forces evaluation of the selected element, similar to [`require_attrs_select`]. + /// Forces evaluation of the selected element, similar to [`Self::require_attrs_select`]. /// - /// Returns [`Ok(Some(value))`] if the element is found. + /// Returns `Ok(Some(value))` if the element is found. /// - /// Returns [`Ok(None)`] if the index is out of bounds. + /// Returns `Ok(None)` if the index is out of bounds. /// /// Returns [`Err`] if evaluation failed, the element contains an error (e.g., `throw`), or the value is not a list. #[doc(alias = "get")] @@ -908,7 +908,7 @@ impl EvalState { /// Applies a function to an argument and returns the result. /// /// Forces [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) of the function application. - /// For a lazy version, see [`new_value_apply`]. + /// For a lazy version, see [`Self::new_value_apply`]. #[doc(alias = "nix_value_call")] #[doc(alias = "value_call")] #[doc(alias = "apply")] @@ -990,7 +990,7 @@ impl EvalState { /// Applies a function to an argument lazily, creating a [thunk](https://nix.dev/manual/nix/latest/language/evaluation.html#laziness). /// /// Does not force [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) of the function application. - /// For an eager version, see [`call`]. + /// For an eager version, see [`Self::call`]. #[doc(alias = "lazy_apply")] #[doc(alias = "thunk_apply")] #[doc(alias = "defer_call")] @@ -1037,10 +1037,10 @@ impl EvalState { Ok(value) } - /// Creates a new [attribute set][`ValueType::Attrs`] Nix value from an iterator of name-value pairs. + /// Creates a new [attribute set][`ValueType::AttrSet`] Nix value from an iterator of name-value pairs. /// /// Accepts any iterator that yields `(String, Value)` pairs and has an exact size. - /// Common usage includes [`Vec`], [`HashMap`], and array literals. + /// Common usage includes [`Vec`], [`std::collections::HashMap`], and array literals. /// /// # Examples /// diff --git a/nix-bindings-expr/src/value.rs b/nix-bindings-expr/src/value.rs index 534eafa..1d7f866 100644 --- a/nix-bindings-expr/src/value.rs +++ b/nix-bindings-expr/src/value.rs @@ -71,7 +71,7 @@ pub struct Value { impl Value { /// Take ownership of a new [`Value`]. /// - /// This does not call [`nix_c_raw::gc_incref`], but does call [`nix_c_raw::nix_gc_decref`] when [dropped][`Drop`]. + /// This does not call [`nix_bindings_util_sys::gc_incref`], but does call [`nix_bindings_util_sys::gc_decref`] when [dropped][`Drop`]. /// /// # Safety /// @@ -84,7 +84,7 @@ impl Value { /// Borrow a reference to a [`Value`]. /// - /// This calls [`nix_c_raw::value_incref`], and the returned Value will call [`nix_c_raw::value_decref`] when dropped. + /// This calls [`nix_bindings_util_sys::value_incref`], and the returned Value will call [`nix_bindings_util_sys::value_decref`] when dropped. /// /// # Safety /// diff --git a/nix-bindings-store/src/store.rs b/nix-bindings-store/src/store.rs index 8f03942..61b60b6 100644 --- a/nix-bindings-store/src/store.rs +++ b/nix-bindings-store/src/store.rs @@ -101,7 +101,7 @@ pub struct Store { impl Store { /// Open a store. /// - /// See [nix_c_raw::store_open] for more information. + /// See [`nix_bindings_util_sys::store_open`] for more information. #[doc(alias = "nix_store_open")] pub fn open<'a, 'b>( url: Option<&str>,