Macro fixes and version bump

Mon, 03 Aug 2026 19:26:21 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 03 Aug 2026 19:26:21 -0500
changeset 203
ad16acf47726
parent 202
7a1f1f6f34b5
child 204
016122e0384b

Macro fixes and version bump

Cargo.lock file | annotate | diff | comparison | revisions
Cargo.toml file | annotate | diff | comparison | revisions
src/instance.rs file | annotate | diff | comparison | revisions
--- a/Cargo.lock	Sat Aug 01 23:33:44 2026 -0500
+++ b/Cargo.lock	Mon Aug 03 19:26:21 2026 -0500
@@ -4,7 +4,7 @@
 
 [[package]]
 name = "alg_tools"
-version = "0.5.3-dev"
+version = "0.5.4"
 dependencies = [
  "anyhow",
  "colored",
--- a/Cargo.toml	Sat Aug 01 23:33:44 2026 -0500
+++ b/Cargo.toml	Mon Aug 03 19:26:21 2026 -0500
@@ -1,6 +1,6 @@
 [package]
 name = "alg_tools"
-version = "0.5.3-dev"
+version = "0.5.4"
 edition = "2021"
 rust-version = "1.85"
 authors = ["Tuomo Valkonen <tuomov@iki.fi>"]
--- a/src/instance.rs	Sat Aug 01 23:33:44 2026 -0500
+++ b/src/instance.rs	Mon Aug 03 19:26:21 2026 -0500
@@ -257,17 +257,17 @@
 
             #[inline]
             fn clone_owned(&self) -> Self::OwnedVariant {
-                *self
+                (*self).clone()
             }
 
             #[inline]
-            fn cow_owned<'b>(self) -> MyCow<'b, Self::OwnedVariant> where Self : 'b {
-                MyCow::Owned(self)
+            fn cow_owned<'b>(self) -> $crate::instance::MyCow<'b, Self::OwnedVariant> where Self : 'b {
+                $crate::instance::MyCow::Owned(self)
             }
 
             #[inline]
-            fn ref_cow_owned<'b>(&self) -> MyCow<'b, Self::OwnedVariant> where Self : 'b {
-                MyCow::Owned(*self)
+            fn ref_cow_owned<'b>(&self) -> $crate::instance::MyCow<'b, Self::OwnedVariant> where Self : 'b {
+                $crate::instance::MyCow::Owned((*self).clone())
             }
         }
     };

mercurial