Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenByteDev committed Jul 24, 2024
1 parent 79b61a1 commit 1be8b2d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion dlopen2-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ version = "0.4.0"
authors = ["Szymon Wieloch <szymon.wieloch@gmail.com>",
"OpenByte <development.openbyte@gmail.com>"]
description = "Derive macros for the dlopen2 crate."
license = "MIT"
license-file = "../LICENSE"
repository = "https://github.com/OpenByteDev/dlopen2"
edition = "2021"
Expand Down
1 change: 0 additions & 1 deletion dlopen2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ authors = [
description = "Library for opening and operating on dynamic link libraries (also known as shared objects or shared libraries)."
keywords = [
"dlopen", "dll", "so", "dylib", "shared"]
license = "MIT"
license-file = "../LICENSE"
repository = "https://github.com/OpenByteDev/dlopen2"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion dlopen2/src/symbor/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dangling symbols is prevented.
* `reference()` and `reference_mut()` - for obtaining access to
statically allocated objects - either constant or mutable.
* `ptr_or_null()` and `ptr_or_null_mut()` - for obtaining pointers if you accept null values of
pointers (in 99% of cases you should rather use previously mentioned methods).
pointers (in 99% of cases you should rather use previously mentioned methods).
#Example
Expand Down
2 changes: 1 addition & 1 deletion dlopen2/tests/commons/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn example_lib_path() -> PathBuf {
None => lib_path = Some(new_path),
Some(old_path) => {
let new_meta = std::fs::metadata(&new_path).unwrap();
let old_meta = std::fs::metadata(&old_path).unwrap();
let old_meta = std::fs::metadata(old_path).unwrap();
if new_meta.modified().unwrap() > old_meta.modified().unwrap() {
lib_path = Some(new_path);
}
Expand Down

0 comments on commit 1be8b2d

Please sign in to comment.