crosvm: fix build with --no-default-feature

Fix a warning that would prevent `presubmit --all` to pass.

BUG=None
TEST=cargo build --verbose --no-default-features

Change-Id: Iff80e5dd49b284cf20c2dd119d0b985317962a54
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3715086
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
This commit is contained in:
Alexandre Courbot 2022-06-21 14:32:04 +09:00 committed by Chromeos LUCI
parent 8062587362
commit f9b74bfa18

View file

@ -333,6 +333,7 @@ impl TouchDeviceOption {
/// When a user specifies the parameters for a touch device, width and height are optional.
/// If the width and height are missing, default values are used. Default values can be set
/// dynamically, for example from the display sizes specified by the gpu argument.
#[cfg(feature = "gpu")]
pub fn set_default_size(&mut self, width: u32, height: u32) {
self.default_width = width;
self.default_height = height;