Post-formatting aesthetic and spacing corrections
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -44,6 +44,7 @@ impl Module {
|
||||
.handle
|
||||
.as_ref()
|
||||
.expect("backing library loaded by this instance");
|
||||
|
||||
// SAFETY: Calls dlsym(3) on unix platforms. This might not have to be unsafe
|
||||
// if wrapped in libloading with_dlerror().
|
||||
let sym = unsafe { handle.get::<Prototype>(cname.as_bytes()) };
|
||||
|
||||
@@ -27,6 +27,7 @@ pub fn to_name(path: &OsStr) -> Result<String> {
|
||||
.expect("path file stem")
|
||||
.to_str()
|
||||
.expect("name string");
|
||||
|
||||
let name = name
|
||||
.strip_prefix("lib")
|
||||
.unwrap_or(name)
|
||||
|
||||
Reference in New Issue
Block a user