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

Commit7f1f726

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

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;
@@ -102,6 +101,11 @@ pub fn uu_app() -> Command {
102101
cmd
103102
}
104103

104+
#[cfg(windows)]
105+
fnuptime_with_file(_:&OsString) ->UResult<()>{
106+
unreachable!("The function should never be called on Windows")
107+
}
108+
105109
#[cfg(unix)]
106110
fnuptime_with_file(file_path:&OsString) ->UResult<()>{
107111
use std::fs;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp