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

Commitb435dbc

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

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;
@@ -105,6 +104,11 @@ pub fn uu_app() -> Command {
105104
cmd
106105
}
107106

107+
#[cfg(windows)]
108+
fnuptime_with_file(_:&OsString) ->UResult<()>{
109+
unreachable!("The function should never be called on Windows")
110+
}
111+
108112
#[cfg(unix)]
109113
fnuptime_with_file(file_path:&OsString) ->UResult<()>{
110114
use std::fs;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp