diff options
author | Dylan Reid <dgreid@chromium.org> | 2019-12-02 13:50:10 +1100 |
---|---|---|
committer | Dylan Reid <dgreid@chromium.org> | 2019-12-04 05:57:29 +0000 |
commit | 38b9ad8620e7797d7a22006caf5edb6416e32f7b (patch) | |
tree | 1d654773c95c56b8ed84970ceb0ddeb145d0d797 /sys_util/src | |
parent | 1a5fe95471e4d75ce31eb8884becdedb52376451 (diff) | |
download | crosvm-38b9ad8620e7797d7a22006caf5edb6416e32f7b.tar crosvm-38b9ad8620e7797d7a22006caf5edb6416e32f7b.tar.gz crosvm-38b9ad8620e7797d7a22006caf5edb6416e32f7b.tar.bz2 crosvm-38b9ad8620e7797d7a22006caf5edb6416e32f7b.tar.lz crosvm-38b9ad8620e7797d7a22006caf5edb6416e32f7b.tar.xz crosvm-38b9ad8620e7797d7a22006caf5edb6416e32f7b.tar.zst crosvm-38b9ad8620e7797d7a22006caf5edb6416e32f7b.zip |
sys_util: Ignore struct_util doc comment
The code in the doc comment didn't compile, fix the missing command. Ignore the snippet because it depends on arch::__IncompleteArrayField, and getting it to compile isn't worth adding a crate dependency. Signed-off-by: Dylan Reid <dgreid@chromium.org> Change-Id: Ibaee50d0d44fbfb9ca2862b1dda220a0a1e5696b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1944097 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'sys_util/src')
-rw-r--r-- | sys_util/src/struct_util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys_util/src/struct_util.rs b/sys_util/src/struct_util.rs index 22411a1..d77dd96 100644 --- a/sys_util/src/struct_util.rs +++ b/sys_util/src/struct_util.rs @@ -18,10 +18,10 @@ fn vec_with_size_in_bytes<T: Default>(size_in_bytes: usize) -> Vec<T> { /// The kvm API has many structs that resemble the following `Foo` structure: /// -/// ``` +/// ```ignore /// #[repr(C)] /// struct Foo { -/// some_data: u32 +/// some_data: u32, /// entries: __IncompleteArrayField<__u32>, /// } /// ``` |