Skip to content

deps: bump paste to paste2 #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 1 addition & 2 deletions hdf5/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ libc = { workspace = true }
lzf-sys = { version = "0.1", optional = true }
mpi-sys = { workspace = true, optional = true }
ndarray = ">=0.15, <=0.16"
paste = "1.0"
paste2 = "1.1.1"
# internal
hdf5-derive = { workspace = true }
hdf5-sys = { workspace = true }
Expand All @@ -66,7 +66,6 @@ hdf5-types = { workspace = true }
half = { workspace = true }
num-complex = { workspace = true }
parking_lot = "0.12.3"
paste = "1.0"
pretty_assertions = "1.4"
rand = { version = "0.9", features = ["small_rng"] }
regex = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions hdf5/src/hl/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ impl DatasetBuilderInner {

macro_rules! impl_builder {
($plist:ident: $name:ident/$short:ident) => {
paste::paste! {
paste2::paste! {
#[inline] #[must_use]
pub fn [<set_ $name _plist>](mut self, $short: &$plist) -> Self {
self.builder.[<set_ $name _plist>]($short); self
Expand Down Expand Up @@ -873,7 +873,7 @@ macro_rules! impl_builder {
$(#[$meta:meta])*
$plist:ident: $name:ident($($var:ident: $ty:ty),*)
) => {
paste::paste! {
paste2::paste! {
$(#[$meta])*
#[inline] #[must_use] #[doc =
"\u{21b3} [`" $plist "Builder::" $name "`]"
Expand All @@ -888,7 +888,7 @@ macro_rules! impl_builder {
$(#[$meta:meta])*
$plist:ident: $name:ident<$($gid:ident: $gty:path),+>($($var:ident: $ty:ty),*)
) => {
paste::paste! {
paste2::paste! {
$(#[$meta])*
#[inline] #[must_use] #[doc =
"\u{21b3} [`" $plist "Builder::" $name "`]"
Expand Down
4 changes: 2 additions & 2 deletions hdf5/tests/test_plist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ macro_rules! test_pl {
b.$field($($arg,)+);
let fapl = b.finish()?;
$(assert_eq!(fapl.$field().$name, $value);)+
paste::paste! { $(assert_eq!(fapl.[<get_ $field>]()?.$name, $value);)+ }
paste2::paste! { $(assert_eq!(fapl.[<get_ $field>]()?.$name, $value);)+ }
});

($ty:ident, $field:ident: $($name:ident=$value:expr),+) => (
Expand All @@ -32,7 +32,7 @@ macro_rules! test_pl {
b.$field($arg);
let fapl = b.finish()?;
assert_eq!(fapl.$field(), $value);
paste::paste! { assert_eq!(fapl.[<get_ $field>]()?, $value); }
paste2::paste! { assert_eq!(fapl.[<get_ $field>]()?, $value); }
});

($ty:ident, $field:ident: $value:expr) => ({
Expand Down
Loading