Skip to content

Commit

Permalink
Merge pull request #20 from jamacku/fedora-prep
Browse files Browse the repository at this point in the history
`Cargo.toml` update
  • Loading branch information
msekletar authored Nov 16, 2022
2 parents dd6d2c1 + 813992e commit 8513714
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
[package]
authors = ["Michal Sekletar <[email protected]>"]
name = "prefixdevname"

version = "0.1.0"
edition = "2021"
license = "MIT"
authors = ["Michal Sekletar <[email protected]>"]
repository = "https://github.com/msekletar/prefixdevname"
exclude = ["/target/*", "/.github/*"]

keywords = []
categories = []
description = "Udev helper utility that provides network interface naming using user defined prefix"
readme = "README.md"

[dependencies]
env_logger = "0.9.3"
lazy_static = "*"
lazy_static = "1.4.0"
libc = "0.2.137"
libudev = "0.3"
log = "0.4.17"
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::path::PathBuf;
extern crate libudev;
use libudev::Device;

use sema::*;
use crate::sema::Semaphore;

pub fn rename_needed(ifname: &str, prefix: &str) -> Result<bool, Box<dyn Error>> {
let re: Regex = Regex::new(&format!("{}\\d+", prefix)).unwrap();
Expand Down

0 comments on commit 8513714

Please sign in to comment.