mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-07 21:27:06 +00:00
lock: reorganize platform-specific implementations as sub modules
This will help rust-analyzer scan both fallback and unix impls.
This commit is contained in:
parent
dfc67e7051
commit
1a2479cd2f
1 changed files with 8 additions and 4 deletions
|
@ -14,11 +14,15 @@
|
|||
|
||||
#![allow(missing_docs)]
|
||||
|
||||
#[cfg_attr(unix, path = "lock/unix.rs")]
|
||||
#[cfg_attr(not(unix), path = "lock/fallback.rs")]
|
||||
mod platform;
|
||||
#[cfg(not(unix))]
|
||||
mod fallback;
|
||||
#[cfg(unix)]
|
||||
mod unix;
|
||||
|
||||
pub use platform::FileLock;
|
||||
#[cfg(not(unix))]
|
||||
pub use self::fallback::FileLock;
|
||||
#[cfg(unix)]
|
||||
pub use self::unix::FileLock;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
Loading…
Reference in a new issue