-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
docs changed in 1.89.0
method.try_lock_shared
error[E0308]: mismatched typesc
--> /home/XXXXX/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/xargo-0.3.26/src/flock.rs:118:41
|
118 | acquire(msg, &path, &|| f.try_lock_shared(), &|| f.lock_shared())?;
| ^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `Result<(), TryLockError>`
|
= note: expected enum `std::result::Result<_, std::io::Error>`
found enum `std::result::Result<_, std::fs::TryLockError>`
help: use `?` to coerce and return an appropriate `Err`, and wrap the resulting value in `Ok` so the expression remains of type `Result`
|
118 | acquire(msg, &path, &|| Ok(f.try_lock_shared()?), &|| f.lock_shared())?;
| +++ ++
For more information about this error, try `rustc --explain E0308`.
error: could not compile `xargo` (lib) due to 1 previous error
maratik123, demurgos, tarcieri and tony-josi-aws
Metadata
Metadata
Assignees
Labels
No labels