From 27ef16c74f7c6409b5b61efb8b183b472917bc2a Mon Sep 17 00:00:00 2001 From: Francisco Javier Honduvilla Coto Date: Tue, 11 Jun 2024 19:47:52 +0100 Subject: [PATCH] wip --- flake.nix | 2 +- src/proto/profile.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 94ffa65..289f3b2 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,7 @@ zlib.dev glibc glibc.static + protobuf ]; nativeBuildInputs = with pkgs; [ pkg-config @@ -80,7 +81,6 @@ # snapshot testing plugin binary cargo-insta # ocamlPackages.magic-trace - protobuf ]; LIBCLANG_PATH = lib.makeLibraryPath [ llvmPackages_16.libclang ]; diff --git a/src/proto/profile.rs b/src/proto/profile.rs index 29267a9..91b7d67 100644 --- a/src/proto/profile.rs +++ b/src/proto/profile.rs @@ -295,6 +295,6 @@ mod tests { pprof_profile.encode(&mut buffer).unwrap(); let mut pprof_file: File = File::create("profile.pb").unwrap(); - pprof_file.write(&buffer).unwrap(); + pprof_file.write_all(&buffer).unwrap(); } }