Fix error from 'cargo outdated'

This works around a failure that looks like this:

    error: failed to select a version for `serde`.
        ... required by package `time v0.3.26`
        ... which satisfies dependency `time = "^0.3.26"` of package `cargo-expand v1.0.64 (/tmp/cargo-outdatedBxYFNJ)`
    versions that meet the requirements `>=1.0.126, <=1.0.171` are: 1.0.171, 1.0.170, 1.0.169, 1.0.168, 1.0.167, 1.0.166, 1.0.165, 1.0.164, 1.0.163, 1.0.162, 1.0.161, 1.0.160, 1.0.159, 1.0.158, 1.0.157, 1.0.156, 1.0.155, 1.0.154, 1.0.153, 1.0.152, 1.0.151, 1.0.150, 1.0.149, 1.0.148, 1.0.147, 1.0.146, 1.0.145, 1.0.144, 1.0.143, 1.0.142, 1.0.141, 1.0.140, 1.0.139, 1.0.138, 1.0.137, 1.0.136, 1.0.135, 1.0.134, 1.0.133, 1.0.132, 1.0.131, 1.0.130, 1.0.129, 1.0.128, 1.0.127, 1.0.126

    all possible versions conflict with previously selected packages.

      previously selected package `serde v1.0.183`
        ... which satisfies dependency `serde = "^1.0.183"` of package `cargo-expand v1.0.64 (/tmp/cargo-outdatedBxYFNJ)`

    failed to select a version for `serde` which could resolve this conflict
This commit is contained in:
David Tolnay 2023-08-18 19:24:37 -07:00
parent 5301de7d2c
commit ee163f0c54
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
2 changed files with 9 additions and 9 deletions

16
Cargo.lock generated
View file

@ -820,18 +820,18 @@ checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918"
[[package]]
name = "serde"
version = "1.0.171"
version = "1.0.183"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30e27d1e4fd7659406c492fd6cfaf2066ba8773de45ca75e855590f856dc34a9"
checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.171"
version = "1.0.183"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "389894603bd18c46fa56231694f8d827779c0951a667087194cf9de94ed24682"
checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816"
dependencies = [
"proc-macro2",
"quote",
@ -971,9 +971,9 @@ dependencies = [
[[package]]
name = "time"
version = "0.3.26"
version = "0.3.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a79d09ac6b08c1ab3906a2f7cc2e81a0e27c7ae89c63812df75e52bef0751e07"
checksum = "b0fdd63d58b18d663fbdf70e049f00a22c8e42be082203be7f26589213cd75ea"
dependencies = [
"deranged",
"itoa",
@ -990,9 +990,9 @@ checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb"
[[package]]
name = "time-macros"
version = "0.2.12"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75c65469ed6b3a4809d987a41eb1dc918e9bc1d92211cbad7ae82931846f7451"
checksum = "eb71511c991639bb078fd5bf97757e03914361c48100d52878b8e52b46fb92cd"
dependencies = [
"time-core",
]

View file

@ -23,7 +23,7 @@ clap = { version = "4", features = ["deprecated", "derive"] }
prettyplease = { version = "0.2.11", features = ["verbatim"] }
proc-macro2 = "1.0.63"
quote = { version = "1.0", default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde = { version = "1.0.183", features = ["derive"] }
syn = { version = "2.0.22", default-features = false, features = ["clone-impls", "fold", "full", "parsing", "printing", "visit-mut"] }
syn-select = "0.3"
tempfile = "3.0"