mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
format
This commit is contained in:
parent
2dd9a8d028
commit
0ec629d105
3 changed files with 9 additions and 9 deletions
|
@ -14,8 +14,8 @@ use hyper::Client;
|
||||||
use msg_generated::deno as msg;
|
use msg_generated::deno as msg;
|
||||||
use std;
|
use std;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::time::UNIX_EPOCH;
|
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
use std::time::UNIX_EPOCH;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
use tokio::prelude::future;
|
use tokio::prelude::future;
|
||||||
use tokio::prelude::*;
|
use tokio::prelude::*;
|
||||||
|
@ -479,12 +479,12 @@ macro_rules! to_seconds {
|
||||||
($time:expr) => {{
|
($time:expr) => {{
|
||||||
// Unwrap is safe here as if the file is before the unix epoch
|
// Unwrap is safe here as if the file is before the unix epoch
|
||||||
// something is very wrong.
|
// something is very wrong.
|
||||||
$time.and_then(|t| Ok(t.duration_since(UNIX_EPOCH).unwrap().as_secs()))
|
$time
|
||||||
|
.and_then(|t| Ok(t.duration_since(UNIX_EPOCH).unwrap().as_secs()))
|
||||||
.unwrap_or(0)
|
.unwrap_or(0)
|
||||||
}}
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn handle_stat_sync(
|
fn handle_stat_sync(
|
||||||
_d: *const DenoC,
|
_d: *const DenoC,
|
||||||
builder: &mut FlatBufferBuilder,
|
builder: &mut FlatBufferBuilder,
|
||||||
|
|
Loading…
Reference in a new issue