[pbs-devel] [PATCH proxmox 09/10] sys: systemd: remove empty line after outer attribute

Maximiliano Sandoval m.sandoval at proxmox.com
Tue Dec 3 11:20:37 CET 2024


Fixes the clippy lint:

```
warning: empty line after outer attribute
 --> proxmox-sys/src/systemd.rs:7:1
  |
7 | / #[allow(clippy::manual_range_contains)]
8 | |
  | |_
9 |   fn parse_hex_digit(d: u8) -> Result<u8, Error> {
  |   ---------------------------------------------- the attribute applies to this function
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr
  = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default
  = help: if the empty line is unintentional remove it
```

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 proxmox-sys/src/systemd.rs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/proxmox-sys/src/systemd.rs b/proxmox-sys/src/systemd.rs
index d5284090..43dc5185 100644
--- a/proxmox-sys/src/systemd.rs
+++ b/proxmox-sys/src/systemd.rs
@@ -5,7 +5,6 @@ use std::path::PathBuf;
 use anyhow::{bail, Error};
 
 #[allow(clippy::manual_range_contains)]
-
 fn parse_hex_digit(d: u8) -> Result<u8, Error> {
     if d >= b'0' && d <= b'9' {
         return Ok(d - b'0');
-- 
2.39.5





More information about the pbs-devel mailing list