Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sndiff for openSUSE:Factory checked in at 2025-06-14 16:17:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sndiff (Old) and /work/SRC/openSUSE:Factory/.sndiff.new.19631 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sndiff" Sat Jun 14 16:17:04 2025 rev:4 rq:1285388 version:0.2.2~2 Changes: -------- --- /work/SRC/openSUSE:Factory/sndiff/sndiff.changes 2025-04-07 17:35:03.096894698 +0200 +++ /work/SRC/openSUSE:Factory/.sndiff.new.19631/sndiff.changes 2025-06-14 16:17:11.500936601 +0200 @@ -1,0 +2,7 @@ +Fri Jun 13 08:48:35 UTC 2025 - apla...@suse.com + +- Update to version 0.2.2~2: + * Update Cargo.lock + * Some style change + +------------------------------------------------------------------- Old: ---- sndiff-0.2.2~0.tar.zst New: ---- sndiff-0.2.2~2.tar.zst ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sndiff.spec ++++++ --- /var/tmp/diff_new_pack.mB9P7m/_old 2025-06-14 16:17:12.792989909 +0200 +++ /var/tmp/diff_new_pack.mB9P7m/_new 2025-06-14 16:17:12.792989909 +0200 @@ -18,7 +18,7 @@ %global rustflags '-Clink-arg=-Wl,-z,relro,-z,now' Name: sndiff -Version: 0.2.2~0 +Version: 0.2.2~2 Release: 0 Summary: Tool for diffing packages and files from snapshots License: MIT @@ -41,7 +41,6 @@ install -D -m 644 %{SOURCE2} .cargo/config.toml %build -sed -i 's/edition = "2024"/edition = "2018"/' Cargo.toml %{cargo_build} go-md2man -in %{SOURCE3} -out sndiff.8 ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.mB9P7m/_old 2025-06-14 16:17:12.840991889 +0200 +++ /var/tmp/diff_new_pack.mB9P7m/_new 2025-06-14 16:17:12.844992054 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/aplanas/sndiff.git</param> - <param name="changesrevision">888faba0dcbb23bee89d4f7d5e256093a35eb5c1</param></service></servicedata> + <param name="changesrevision">01da6adc2d177b65c87b48c90767d2a79f94b49c</param></service></servicedata> (No newline at EOF) ++++++ sndiff-0.2.2~0.tar.zst -> sndiff-0.2.2~2.tar.zst ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sndiff-0.2.2~0/Cargo.lock new/sndiff-0.2.2~2/Cargo.lock --- old/sndiff-0.2.2~0/Cargo.lock 2025-04-04 09:53:16.000000000 +0200 +++ new/sndiff-0.2.2~2/Cargo.lock 2025-06-13 10:47:18.000000000 +0200 @@ -19,9 +19,9 @@ [[package]] name = "anstream" -version = "0.6.18" +version = "0.6.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" +checksum = "301af1932e46185686725e0fad2f8f2aa7da69dd70bf6ecc44d6b703844a3933" dependencies = [ "anstyle", "anstyle-parse", @@ -34,37 +34,37 @@ [[package]] name = "anstyle" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" +checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd" [[package]] name = "anstyle-parse" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" +checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" +checksum = "6c8bdeb6047d8983be085bab0ba1472e6dc604e7041dbf6fcd5e71523014fae9" dependencies = [ - "windows-sys 0.59.0", + "windows-sys", ] [[package]] name = "anstyle-wincon" -version = "3.0.7" +version = "3.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e" +checksum = "403f75924867bb1033c59fbf0797484329750cfbe3c4325cd33127941fabc882" dependencies = [ "anstyle", - "once_cell", - "windows-sys 0.59.0", + "once_cell_polyfill", + "windows-sys", ] [[package]] @@ -75,36 +75,36 @@ [[package]] name = "bitflags" -version = "2.9.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd" +checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" [[package]] name = "bumpalo" -version = "3.17.0" +version = "3.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" +checksum = "793db76d6187cd04dff33004d8e6c9cc4e05cd330500379d2394209271b4aeee" [[package]] name = "cc" -version = "1.2.17" +version = "1.2.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fcb57c740ae1daf453ae85f16e37396f672b039e00d9d866e07ddb24e328e3a" +checksum = "956a5e21988b87f372569b66183b78babf23ebc2e744b733e4350a752c4dafac" dependencies = [ "shlex", ] [[package]] name = "cfg-if" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268" [[package]] name = "chrono" -version = "0.4.40" +version = "0.4.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c" +checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" dependencies = [ "android-tzdata", "iana-time-zone", @@ -116,9 +116,9 @@ [[package]] name = "clap" -version = "4.5.34" +version = "4.5.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e958897981290da2a852763fe9cdb89cd36977a5d729023127095fa94d95e2ff" +checksum = "40b6887a1d8685cebccf115538db5c0efe625ccac9696ad45c409d96566e910f" dependencies = [ "clap_builder", "clap_derive", @@ -126,9 +126,9 @@ [[package]] name = "clap_builder" -version = "4.5.34" +version = "4.5.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83b0f35019843db2160b5bb19ae09b4e6411ac33fc6a712003c33e03090e2489" +checksum = "e0c66c08ce9f0c698cbce5c0279d0bb6ac936d8674174fe48f736533b964f59e" dependencies = [ "anstream", "anstyle", @@ -138,9 +138,9 @@ [[package]] name = "clap_derive" -version = "4.5.32" +version = "4.5.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7" +checksum = "d2c7947ae4cc3d851207c1adb5b5e260ff0cca11446b1d6d1423788e442257ce" dependencies = [ "heck", "proc-macro2", @@ -150,15 +150,15 @@ [[package]] name = "clap_lex" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" +checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675" [[package]] name = "colorchoice" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" +checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" [[package]] name = "colored" @@ -166,7 +166,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fde0e0ec90c9dfb3b4b1a0891a7dcd0e2bffde2f7efed5fe7c9bb00e5bfb915e" dependencies = [ - "windows-sys 0.59.0", + "windows-sys", ] [[package]] @@ -202,9 +202,9 @@ [[package]] name = "deranged" -version = "0.4.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cfac68e08048ae1883171632c2aef3ebc555621ae56fbccce1cbf22dd7f058" +checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e" dependencies = [ "powerfmt", ] @@ -217,12 +217,12 @@ [[package]] name = "errno" -version = "0.3.10" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" +checksum = "cea14ef9355e3beab063703aa9dab15afd25f0667c341310c1e5274bb1d0da18" dependencies = [ "libc", - "windows-sys 0.59.0", + "windows-sys", ] [[package]] @@ -285,9 +285,9 @@ [[package]] name = "libc" -version = "0.2.171" +version = "0.2.172" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6" +checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" [[package]] name = "linux-raw-sys" @@ -297,15 +297,15 @@ [[package]] name = "linux-raw-sys" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe7db12097d22ec582439daf8618b8fdd1a7bef6270e9af3b1ebcd30893cf413" +checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" [[package]] name = "lock_api" -version = "0.4.12" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765" dependencies = [ "autocfg", "scopeguard", @@ -319,20 +319,20 @@ [[package]] name = "memchr" -version = "2.7.4" +version = "2.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" +checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" [[package]] name = "mio" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" +checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" dependencies = [ "libc", "log", "wasi", - "windows-sys 0.52.0", + "windows-sys", ] [[package]] @@ -392,10 +392,16 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] +name = "once_cell_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" + +[[package]] name = "parking_lot" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +checksum = "70d58bf43669b5795d1576d0641cfb6fbb2057bf629506267a92807158584a13" dependencies = [ "lock_api", "parking_lot_core", @@ -403,9 +409,9 @@ [[package]] name = "parking_lot_core" -version = "0.9.10" +version = "0.9.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +checksum = "bc838d2a56b5b1a6c25f55575dfc605fabb63bb2365f6c2353ef9159aa69e4a5" dependencies = [ "cfg-if", "libc", @@ -448,9 +454,9 @@ [[package]] name = "proc-macro2" -version = "1.0.94" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" dependencies = [ "unicode-ident", ] @@ -466,9 +472,9 @@ [[package]] name = "redox_syscall" -version = "0.5.10" +version = "0.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b8c0c260b63a8219631167be35e6a988e9554dbd323f8bd08439c8ed1302bd1" +checksum = "0d04b7d0ee6b4a0207a0a7adb104d23ecb0b47d6beae7152d0fa34b692b29fd6" dependencies = [ "bitflags", ] @@ -483,27 +489,27 @@ "errno", "libc", "linux-raw-sys 0.4.15", - "windows-sys 0.59.0", + "windows-sys", ] [[package]] name = "rustix" -version = "1.0.3" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e56a18552996ac8d29ecc3b190b4fdbb2d91ca4ec396de7bbffaf43f3d637e96" +checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266" dependencies = [ "bitflags", "errno", "libc", - "linux-raw-sys 0.9.3", - "windows-sys 0.59.0", + "linux-raw-sys 0.9.4", + "windows-sys", ] [[package]] name = "rustversion" -version = "1.0.20" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2" +checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d" [[package]] name = "ryu" @@ -563,9 +569,9 @@ [[package]] name = "signal-hook" -version = "0.3.17" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" +checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" dependencies = [ "libc", "signal-hook-registry", @@ -584,9 +590,9 @@ [[package]] name = "signal-hook-registry" -version = "1.4.2" +version = "1.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" +checksum = "9203b8055f63a2a00e2f593bb0510367fe707d7ff1e5c872de2f537b339e5410" dependencies = [ "libc", ] @@ -610,9 +616,9 @@ [[package]] name = "smallvec" -version = "1.14.0" +version = "1.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" [[package]] name = "smawk" @@ -622,7 +628,7 @@ [[package]] name = "sndiff" -version = "0.2.1" +version = "0.2.2" dependencies = [ "chrono", "clap", @@ -643,9 +649,9 @@ [[package]] name = "syn" -version = "2.0.100" +version = "2.0.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0" +checksum = "e4307e30089d6fd6aff212f2da3a1f9e32f3223b1f010fb09b7c95f90f3ca1e8" dependencies = [ "proc-macro2", "quote", @@ -682,8 +688,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "45c6481c4829e4cc63825e62c49186a34538b7b2750b73b266581ffb612fb5ed" dependencies = [ - "rustix 1.0.3", - "windows-sys 0.59.0", + "rustix 1.0.7", + "windows-sys", ] [[package]] @@ -771,9 +777,9 @@ [[package]] name = "unicode-width" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" +checksum = "4a1a07cc7db3810833284e8d372ccdc6da29741639ecc70c9ec107df0fa6154c" [[package]] name = "utf8parse" @@ -783,9 +789,9 @@ [[package]] name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" +version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] name = "wasm-bindgen" @@ -867,7 +873,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.59.0", + "windows-sys", ] [[package]] @@ -878,9 +884,9 @@ [[package]] name = "windows-core" -version = "0.61.0" +version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4763c1de310c86d75a878046489e2e5ba02c649d185f21c67d4cf8a56d098980" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" dependencies = [ "windows-implement", "windows-interface", @@ -913,38 +919,29 @@ [[package]] name = "windows-link" -version = "0.1.1" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" [[package]] name = "windows-result" -version = "0.3.2" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" dependencies = [ "windows-link", ] [[package]] name = "windows-strings" -version = "0.4.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2ba9642430ee452d5a7aa78d72907ebe8cfda358e8cb7918a2050581322f97" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" dependencies = [ "windows-link", ] [[package]] -name = "windows-sys" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" -dependencies = [ - "windows-targets", -] - -[[package]] name = "windows-sys" version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sndiff-0.2.2~0/src/main.rs new/sndiff-0.2.2~2/src/main.rs --- old/sndiff-0.2.2~0/src/main.rs 2025-04-04 09:53:16.000000000 +0200 +++ new/sndiff-0.2.2~2/src/main.rs 2025-06-13 10:47:18.000000000 +0200 @@ -75,11 +75,11 @@ let path = Path::new(dir_path); if !path.exists() { - return Err(format!("Directory '{}' does not exist.", dir_path)); + return Err(format!("Directory '{dir_path}' does not exist.")); } if !path.is_dir() { - return Err(format!("'{}' is not a directory.", dir_path)); + return Err(format!("'{dir_path}' is not a directory.")); } match fs::read_dir(path) { @@ -87,11 +87,10 @@ Err(e) => { if e.kind() == std::io::ErrorKind::PermissionDenied { Err(format!( - "No read permission for directory '{}': {}", - dir_path, e + "No read permission for directory '{dir_path}': {e}" )) } else { - Err(format!("Error reading directory '{}': {}", dir_path, e)) + Err(format!("Error reading directory '{dir_path}': {e}")) } } } @@ -146,7 +145,7 @@ .arg("--dbpath") .arg(&dbpath) .output() - .map_err(|e| format!("Failed to execute rpm: {}", e))?; + .map_err(|e| format!("Failed to execute rpm: {e}"))?; if !output.status.success() { eprintln!("stdout: {}", str::from_utf8(&output.stdout).unwrap()); @@ -155,7 +154,7 @@ } let stdout = - str::from_utf8(&output.stdout).map_err(|e| format!("Invalid UTF-8 output: {}", e))?; + str::from_utf8(&output.stdout).map_err(|e| format!("Invalid UTF-8 output: {e}"))?; let mut packages: Vec<Package> = Vec::new(); let mut lines = stdout.lines(); @@ -211,7 +210,7 @@ .map(|p| (p.name.as_str(), (p.version.as_str(), &p.changelog))) .collect(); - for (name, (new_version, new_changelog)) in new_map.iter() { + for (name, (new_version, new_changelog)) in &new_map { if let Some((old_version, old_changelog)) = old_map.get(name) { let parsed_old_version = Version::parse(old_version); let parsed_new_version = Version::parse(new_version); @@ -225,17 +224,17 @@ (Ok(old), Ok(new)) => match new.cmp(&old) { Ordering::Greater => { changes.updated.push(PackageChange { - name: name.to_string(), - version_from: old_version.to_string(), - version_to: new_version.to_string(), + name: (*name).to_string(), + version_from: (*old_version).to_string(), + version_to: (*new_version).to_string(), changelog_diff, }); } Ordering::Less => { changes.downgraded.push(PackageChange { - name: name.to_string(), - version_from: old_version.to_string(), - version_to: new_version.to_string(), + name: (*name).to_string(), + version_from: (*old_version).to_string(), + version_to: (*new_version).to_string(), changelog_diff, }); } @@ -244,27 +243,27 @@ (Err(_), Ok(_)) => { // Handle cases where the old version is not semver but new is: treat as update. changes.updated.push(PackageChange { - name: name.to_string(), - version_from: old_version.to_string(), - version_to: new_version.to_string(), + name: (*name).to_string(), + version_from: (*old_version).to_string(), + version_to: (*new_version).to_string(), changelog_diff, }); } (Ok(_), Err(_)) => { // Handle cases where the new version is not semver but old is: treat as downgrade. changes.downgraded.push(PackageChange { - name: name.to_string(), - version_from: old_version.to_string(), - version_to: new_version.to_string(), + name: (*name).to_string(), + version_from: (*old_version).to_string(), + version_to: (*new_version).to_string(), changelog_diff, }); } (Err(_), Err(_)) => { if new_version != old_version { changes.updated.push(PackageChange { - name: name.to_string(), - version_from: old_version.to_string(), - version_to: new_version.to_string(), + name: (*name).to_string(), + version_from: (*old_version).to_string(), + version_to: (*new_version).to_string(), changelog_diff, }); } @@ -273,19 +272,19 @@ } else { // Package was added changes.added.push(Package { - name: name.to_string(), - version: new_version.to_string(), + name: (*name).to_string(), + version: (*new_version).to_string(), changelog: (**new_changelog).clone(), }); } } // Check for removed packages - for (name, (old_version, old_changelog)) in old_map.iter() { + for (name, (old_version, old_changelog)) in &old_map { if !new_map.contains_key(name) { changes.removed.push(Package { - name: name.to_string(), - version: old_version.to_string(), + name: (*name).to_string(), + version: (*old_version).to_string(), changelog: (**old_changelog).clone(), }); } @@ -654,14 +653,14 @@ Path::new(&old_file.root_path) .join(old_file.path.strip_prefix("/").unwrap_or(&old_file.path)), ) - .unwrap_or("".to_string()); + .unwrap_or_default(); let new = fs::read_to_string( Path::new(&new_file.root_path) .join(new_file.path.strip_prefix("/").unwrap_or(&new_file.path)), ) - .unwrap_or("".to_string()); + .unwrap_or_default(); changes.modified.push(FileChange { - path: name.to_string(), + path: (*name).to_string(), root_path_from: old_file.root_path.clone(), root_path_to: new_file.root_path.clone(), size_from: old_file.size, @@ -827,8 +826,8 @@ impl fmt::Display for AppError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { - AppError::Io(err) => write!(f, "IO Error: {}", err), - AppError::String(err) => write!(f, "Error: {}", err), + AppError::Io(err) => write!(f, "IO Error: {err}"), + AppError::String(err) => write!(f, "Error: {err}"), } } } @@ -907,7 +906,7 @@ { let s = match date { Some(d) => format!("{}", d.format(FORMAT)), - None => "".to_string(), + None => String::new(), }; serializer.serialize_str(&s) } @@ -934,7 +933,7 @@ .arg("ls") .arg("--disable-used-space") .output() - .map_err(|e| format!("Failed to execute snapper: {}", e))?; + .map_err(|e| format!("Failed to execute snapper: {e}"))?; if !output.status.success() { eprintln!("stdout: {}", str::from_utf8(&output.stdout).unwrap()); @@ -943,7 +942,7 @@ } let stdout = - str::from_utf8(&output.stdout).map_err(|e| format!("Invalid UTF-8 output: {}", e))?; + str::from_utf8(&output.stdout).map_err(|e| format!("Invalid UTF-8 output: {e}"))?; let snapshots: Snapshots = serde_json::from_str(stdout).expect("Failed to parse JSON"); Ok(snapshots) @@ -989,7 +988,7 @@ }, match snapshot.pre_number { Some(n) => n.to_string(), - None => "".to_string(), + None => String::new(), }, match snapshot.date { Some(d) => d.to_string(), @@ -1038,10 +1037,7 @@ .arg("read-only-root-fs") .output(); - let output = match output { - Ok(o) => o, - Err(_) => return false, - }; + let Ok(output) = output else { return false }; output.status.success() } @@ -1161,7 +1157,7 @@ }; if let Err(err) = result { - eprintln!("{}", err); + eprintln!("{err}"); } } ++++++ sndiff.obsinfo ++++++ --- /var/tmp/diff_new_pack.mB9P7m/_old 2025-06-14 16:17:12.976997501 +0200 +++ /var/tmp/diff_new_pack.mB9P7m/_new 2025-06-14 16:17:12.980997666 +0200 @@ -1,5 +1,5 @@ name: sndiff -version: 0.2.2~0 -mtime: 1743753196 -commit: 888faba0dcbb23bee89d4f7d5e256093a35eb5c1 +version: 0.2.2~2 +mtime: 1749804438 +commit: 01da6adc2d177b65c87b48c90767d2a79f94b49c ++++++ vendor.tar.zst ++++++ /work/SRC/openSUSE:Factory/sndiff/vendor.tar.zst /work/SRC/openSUSE:Factory/.sndiff.new.19631/vendor.tar.zst differ: char 7, line 1