diff options
author | 2024-10-02 20:56:43 +0300 | |
---|---|---|
committer | 2024-11-22 20:48:31 +0300 | |
commit | f271339aa1c9d55c2865b379d39b423faf22365e (patch) | |
tree | e2cb5c2d4b0a2249d40205d3c14d1fbd56ed4949 /rust/libnewsboat-ffi/src/filepath.rs | |
parent | 71a87f8f41c191f4144a556f9158f17640cd5ad6 (diff) | |
download | newsboat-f271339aa1c9d55c2865b379d39b423faf22365e.tar.gz newsboat-f271339aa1c9d55c2865b379d39b423faf22365e.tar.zst newsboat-f271339aa1c9d55c2865b379d39b423faf22365e.zip |
Remove remaining implicit conversions from {File,Dir}BrowserFormAction
Diffstat (limited to 'rust/libnewsboat-ffi/src/filepath.rs')
-rw-r--r-- | rust/libnewsboat-ffi/src/filepath.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/libnewsboat-ffi/src/filepath.rs b/rust/libnewsboat-ffi/src/filepath.rs index 65ed82b8..602c3fa2 100644 --- a/rust/libnewsboat-ffi/src/filepath.rs +++ b/rust/libnewsboat-ffi/src/filepath.rs @@ -19,6 +19,7 @@ mod bridged { fn create_empty() -> Box<PathBuf>; fn create(filepath: Vec<u8>) -> Box<PathBuf>; fn equals(lhs: &PathBuf, rhs: &PathBuf) -> bool; + fn less_than(lhs: &PathBuf, rhs: &PathBuf) -> bool; fn into_bytes(filepath: &PathBuf) -> Vec<u8>; fn display(filepath: &PathBuf) -> String; fn push(filepath: &mut PathBuf, component: &PathBuf); @@ -44,6 +45,10 @@ fn equals(lhs: &PathBuf, rhs: &PathBuf) -> bool { lhs.0 == rhs.0 } +fn less_than(lhs: &PathBuf, rhs: &PathBuf) -> bool { + lhs.0 < rhs.0 +} + fn into_bytes(filepath: &PathBuf) -> Vec<u8> { filepath.0.as_os_str().as_bytes().to_owned() } |