Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/c_api/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub unsafe extern "C" fn haystack_value_number_has_unit(val: *const Value) -> Re
/// # use crate::libhaystack::val::Value;
/// # use crate::libhaystack::c_api::value::*;
/// # use crate::libhaystack::c_api::number::*;
/// let unit = std::ffi::CString::new("s").unwrap();
/// let unit = std::ffi::CString::new("sec").unwrap();
/// # unsafe {
/// let val = haystack_value_make_number_with_unit(42.0, unit.as_ptr());
/// # let val = Box::<Value>::leak(val.unwrap());
Expand Down
2 changes: 1 addition & 1 deletion src/haystack/defs/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ impl<'a> Namespace<'a> {
}

/// The defs for all of the core haystack value types.
pub fn core_type_defs(&self) -> CoreTypeDefs {
pub fn core_type_defs(&'_ self) -> CoreTypeDefs<'_> {
CoreTypeDefs {
marker: self.get_by_name("marker").unwrap_or(&EMPTY_DICT),
na: self.get_by_name("na").unwrap_or(&EMPTY_DICT),
Expand Down
2 changes: 1 addition & 1 deletion src/haystack/encoding/zinc/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub trait ToZinc {
/// use libhaystack::encoding::zinc::encode::*;
/// use libhaystack::units::get_unit_or_default;
/// let val = Number::make_with_unit(100.0, get_unit_or_default("s"));
/// assert_eq!(val.to_zinc_string(), Ok("100s".to_string()));
/// assert_eq!(val.to_zinc_string(), Ok("100sec".to_string()));
/// ```
fn to_zinc_string(&self) -> Result<String> {
let mut output = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion src/haystack/filter/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Path {
}

/// Obtain an `Id` iterator over `Path`s segments
pub fn iter(&self) -> std::slice::Iter<Id> {
pub fn iter(&'_ self) -> std::slice::Iter<'_, Id> {
self.segments.iter()
}
}
Expand Down
Loading
Loading