[no description]
release
bendn 5 weeks ago
parent 1a6debf · commit f0e57d3
-rw-r--r--Cargo.toml5
-rw-r--r--src/fns.rs2
-rw-r--r--src/iterator.rs2
-rw-r--r--src/lib.rs2
-rw-r--r--src/try.rs4
5 files changed, 7 insertions, 8 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c1037f6..f931ef0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ttools"
-version = "0.1.1"
+version = "0.1.2"
license = "MIT"
edition = "2024"
authors = ["bend-n <[email protected]>"]
@@ -8,3 +8,6 @@ description = "tuple utilities"
repository = "https://git.bendn.org/ttools"
keywords = ["tuple", "utilities"]
categories = ["algorithms", "no-std"]
+
+[package.metadata.docs.rs]
+rustdoc-args = ["--generate-link-to-definition"]
diff --git a/src/fns.rs b/src/fns.rs
index 23b0b00..aa92be1 100644
--- a/src/fns.rs
+++ b/src/fns.rs
@@ -1,5 +1,3 @@
-use core::ops::Add;
-
use crate::{Pick, RePick, Tupl};
pub fn on<const N: usize, U, T: Tupl + Pick<N>>(
diff --git a/src/iterator.rs b/src/iterator.rs
index 9d47e46..6343755 100644
--- a/src/iterator.rs
+++ b/src/iterator.rs
@@ -238,7 +238,7 @@ ref_traits!(
as_mut,
mut
);
-/// Required to call [`IteratorOfTuples::filter_map_on`]
+/// Required to call [`IteratorOfTuplesWithF::filter_map_at`]
pub fn hrf<T, U, F: for<'a> Fn(&'a T) -> U>(f: F) -> F {
f
}
diff --git a/src/lib.rs b/src/lib.rs
index 00b1a83..ad9ba6b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -9,7 +9,7 @@
iter_next_chunk
)]
#![no_std]
-#![allow(mixed_script_confusables, confusable_idents)]
+#![allow(mixed_script_confusables, confusable_idents, incomplete_features)]
//! ![view](https://raw.githubusercontent.com/learnyouahaskell/learnyouahaskell.github.io/e4282695721ed62b746d213aa81265f8c254fbf2/static/assets/images/starting-out/listmonster.png)
//!
//! start with [`Tupl`].
diff --git a/src/try.rs b/src/try.rs
index 6fcd740..a209142 100644
--- a/src/try.rs
+++ b/src/try.rs
@@ -37,14 +37,12 @@ pub trait TryTuple<T: Tupl>: Try<Output = T> {
}
}
}
+
pub type ChangeOutputType<T: Try<Residual: Residual<V>>, V> =
<T::Residual as Residual<V>>::TryType;
impl<T: Tupl, Tr: Try<Output = T>> TryTuple<T> for Tr {}
-// impl<T: Tupl, Tr: Try<Output = T>> TryTuple<T> for Tr {}
-// impl<T: Tupl, Tr: Try<Output = T>> TryTuple<T> for Tr {}
-
option_of_ref_to_tuple!(
TryRefTuple,
OptionOfRefToTupleWithF,