Skip to content

Commit

Permalink
fix: remove export name
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Nov 22, 2023
1 parent 39e8513 commit 307cfd1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 95 deletions.
82 changes: 0 additions & 82 deletions ext/extensions/FileMetadata/FileMetadata.yy

This file was deleted.

7 changes: 0 additions & 7 deletions ext/metadata.json

This file was deleted.

6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub fn log_and_return(e: impl std::fmt::Display) -> f64 {
}

#[no_mangle]
#[cfg_attr(not(target_os = "macos"), export_name = "_file_creation_date")]
pub unsafe extern "C" fn file_creation_date(path: *const i8) -> f64 {

Check failure on line 13 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (ubuntu-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 13 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (macos-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 13 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (windows-latest)

unsafe function's docs miss `# Safety` section
let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() };
let path = match std::str::from_utf8(path) {
Expand All @@ -35,7 +34,6 @@ pub unsafe extern "C" fn file_creation_date(path: *const i8) -> f64 {
}

#[no_mangle]
#[cfg_attr(not(target_os = "macos"), export_name = "_file_modification_date")]
pub unsafe extern "C" fn file_modification_date(path: *const i8) -> f64 {

Check failure on line 37 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (ubuntu-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 37 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (macos-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 37 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (windows-latest)

unsafe function's docs miss `# Safety` section
let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() };
let path = match std::str::from_utf8(path) {
Expand All @@ -60,7 +58,6 @@ pub unsafe extern "C" fn file_modification_date(path: *const i8) -> f64 {
}

#[no_mangle]
#[cfg_attr(not(target_os = "macos"), export_name = "_file_access_date")]
pub unsafe extern "C" fn file_access_date(path: *const i8) -> f64 {

Check failure on line 61 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (ubuntu-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 61 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (macos-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 61 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (windows-latest)

unsafe function's docs miss `# Safety` section
let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() };
let path = match std::str::from_utf8(path) {
Expand All @@ -85,7 +82,6 @@ pub unsafe extern "C" fn file_access_date(path: *const i8) -> f64 {
}

#[no_mangle]
#[cfg_attr(not(target_os = "macos"), export_name = "_file_size")]
pub unsafe extern "C" fn file_size(path: *const i8) -> f64 {

Check failure on line 85 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (ubuntu-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 85 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (macos-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 85 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (windows-latest)

unsafe function's docs miss `# Safety` section
let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() };
let path = match std::str::from_utf8(path) {
Expand All @@ -102,7 +98,6 @@ pub unsafe extern "C" fn file_size(path: *const i8) -> f64 {
}

#[no_mangle]
#[cfg_attr(not(target_os = "macos"), export_name = "_file_exists")]
pub unsafe extern "C" fn file_exists(path: *const i8) -> bool {

Check failure on line 101 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (ubuntu-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 101 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (macos-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 101 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (windows-latest)

unsafe function's docs miss `# Safety` section
let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() };
let path = match std::str::from_utf8(path) {
Expand All @@ -116,7 +111,6 @@ pub unsafe extern "C" fn file_exists(path: *const i8) -> bool {
}

#[no_mangle]
#[cfg_attr(not(target_os = "macos"), export_name = "_file_is_directory")]
pub unsafe extern "C" fn file_is_directory(path: *const i8) -> bool {

Check failure on line 114 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (ubuntu-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 114 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (macos-latest)

unsafe function's docs miss `# Safety` section

Check failure on line 114 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (windows-latest)

unsafe function's docs miss `# Safety` section
let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() };
let path = match std::str::from_utf8(path) {
Expand Down

0 comments on commit 307cfd1

Please sign in to comment.