mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tail: disable clippy::assigning_clones on OpenBSD
- Avoid error on OpenBSD stable/7.5 with clippy (lint) - assigning_clones added in Rust 1.78.0 (1.76 used on OpenBSD 7.5) https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
parent
7a556a6e82
commit
14258b12ad
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ impl WatcherRx {
|
||||||
Tested for notify::InotifyWatcher and for notify::PollWatcher.
|
Tested for notify::InotifyWatcher and for notify::PollWatcher.
|
||||||
*/
|
*/
|
||||||
if let Some(parent) = path.parent() {
|
if let Some(parent) = path.parent() {
|
||||||
#[allow(clippy::assigning_clones)]
|
// clippy::assigning_clones added with Rust 1.78
|
||||||
|
// Rust version = 1.76 on OpenBSD stable/7.5
|
||||||
|
#[cfg_attr(not(target_os = "openbsd"), allow(clippy::assigning_clones))]
|
||||||
if parent.is_dir() {
|
if parent.is_dir() {
|
||||||
path = parent.to_owned();
|
path = parent.to_owned();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue