Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7d9df6c

Browse files
committed
uptime: add dummy uptime_with_file() for Windows
to satisfy the compiler
1 parent6fb67da commit7d9df6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/uu/uptime/src/uptime.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ pub fn uu_app() -> Command {
9999
)
100100
}
101101

102+
#[cfg(windows)]
103+
fnuptime_with_file(_:&OsString) ->UResult<()>{
104+
unreachable!("The function should never be called on Windows")
105+
}
106+
102107
#[cfg(unix)]
103108
fnuptime_with_file(file_path:&OsString) ->UResult<()>{
104109
use std::fs;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp