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

Commitfe20008

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// spell-checker:ignore getloadavg behaviour loadavg uptime upsecs updays upmins uphours boottime nusers utmpxname gettime clockid
77

88
use chrono::{Local,TimeZone,Utc};
9-
#[cfg(unix)]
109
use std::ffi::OsString;
1110
use std::io;
1211
use thiserror::Error;
@@ -99,6 +98,11 @@ pub fn uu_app() -> Command {
9998
)
10099
}
101100

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp