Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Nov 22, 2023
1 parent 26ce274 commit 042f0be
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ pub fn log_and_return(e: impl std::fmt::Display) -> f64 {

/**
* Returns the creation date of the file at the given path.
*
*
* # Safety
*
*
* This function is unsafe because it takes a raw pointer as an argument. GML is responsible for
* ensuring that the pointer is valid and that the string it points to is valid UTF-8.
*/
Expand Down Expand Up @@ -43,9 +43,9 @@ pub unsafe extern "C" fn file_creation_date(path: *const i8) -> f64 {

/**
* Returns the modification date of the file at the given path.
*
*
* # Safety
*
*
* This function is unsafe because it takes a raw pointer as an argument. GML is responsible for
* ensuring that the pointer is valid and that the string it points to is valid UTF-8.
*/
Expand Down Expand Up @@ -75,9 +75,9 @@ pub unsafe extern "C" fn file_modification_date(path: *const i8) -> f64 {

/**
* Returns the access date of the file at the given path.
*
*
* # Safety
*
*
* This function is unsafe because it takes a raw pointer as an argument. GML is responsible for
* ensuring that the pointer is valid and that the string it points to is valid UTF-8.
*/
Expand Down Expand Up @@ -107,9 +107,9 @@ pub unsafe extern "C" fn file_access_date(path: *const i8) -> f64 {

/**
* Returns the size of the file at the given path.
*
*
* # Safety
*
*
* This function is unsafe because it takes a raw pointer as an argument. GML is responsible for
* ensuring that the pointer is valid and that the string it points to is valid UTF-8.
*/
Expand All @@ -131,9 +131,9 @@ pub unsafe extern "C" fn file_size(path: *const i8) -> f64 {

/**
* Returns whether or not the file at the given path exists.
*
*
* # Safety
*
*
* This function is unsafe because it takes a raw pointer as an argument. GML is responsible for
* ensuring that the pointer is valid and that the string it points to is valid UTF-8.
*/
Expand All @@ -152,9 +152,9 @@ pub unsafe extern "C" fn file_exists(path: *const i8) -> bool {

/**
* Returns whether or not the file at the given path is a directory.
*
*
* # Safety
*
*
* This function is unsafe because it takes a raw pointer as an argument. GML is responsible for
* ensuring that the pointer is valid and that the string it points to is valid UTF-8.
*/
Expand Down

0 comments on commit 042f0be

Please sign in to comment.