Jelajahi Sumber

deps: update time crate version.

Also add an #[allow(deprecated)] for the precise_time_ns() function.

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Ismo Puustinen 2 tahun lalu
induk
melakukan
196e537589
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 1
      Cargo.toml
  2. 1 0
      src/helpers.rs

+ 1 - 1
Cargo.toml

@@ -26,7 +26,7 @@ include = [
 
 combine = "2.5"
 libc = "0.2"
-time = "0.1"
+time = "0.2"
 byteorder = "1.2"
 
 [dev-dependencies]

+ 1 - 0
src/helpers.rs

@@ -47,6 +47,7 @@ pub const BPF_KTIME_GETNS_IDX: u32 = 5;
 /// ```
 #[allow(dead_code)]
 #[allow(unused_variables)]
+#[allow(deprecated)]
 pub fn bpf_time_getns (unused1: u64, unused2: u64, unused3: u64, unused4: u64, unused5: u64) -> u64 {
     time::precise_time_ns()
 }