cargo doc: fix warnings

BUG=None
TEST=tools/cargo-doc

Change-Id: I332849dd0df415f634df4c9ad664176f8b8891cf
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3936732
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
Daniel Verkamp 2022-10-06 13:07:46 -07:00 committed by crosvm LUCI
parent 466deb7a78
commit 699c06cdc3
5 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
// found in the LICENSE file.
//! Implementation of the EDID specification provided by software.
//! EDID spec: https://glenwing.github.io/docs/VESA-EEDID-A2.pdf
//! EDID spec: <https://glenwing.github.io/docs/VESA-EEDID-A2.pdf>
use std::fmt;
use std::fmt::Debug;

View file

@ -479,7 +479,7 @@ impl Queue {
Ok(())
}
/// Releases memory exported by a previous call to [export_memory].
/// Releases memory exported by a previous call to [`Queue::export_memory()`].
pub fn release_exported_memory(&mut self) {
self.exported_desc_table = None;
self.exported_avail_ring = None;

View file

@ -97,7 +97,7 @@ impl Drop for StreamInfo {
impl StreamInfo {
/// Creates a new [`StreamInfo`].
///
/// * `stream_source_generator`: Generator which generates stream source in [`prepare()`].
/// * `stream_source_generator`: Generator which generates stream source in [`StreamInfo::prepare()`].
pub fn new(stream_source_generator: Box<dyn StreamSourceGenerator>) -> Self {
StreamInfo {
stream_source: None,

View file

@ -289,7 +289,7 @@ pub struct Options {
/// comma separated key=value pairs for setting up cras snd devices.
/// Possible key values:
/// capture - Enable audio capture. Default to false.
/// backend(null,[cras]) - Which backend to use for vhost-snd.
/// backend - Which backend to use for vhost-snd (null|cras).
/// client_type - Set specific client type for cras backend.
/// socket_type - Set socket type for cras backend.
/// num_output_devices - Set number of output PCM devices.

View file

@ -82,7 +82,7 @@ pub enum Error {
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, Copy, Clone, PartialEq)]
/// Information about a kernel loaded with the [`load_kernel`] function.
/// Information about a kernel loaded with the [`load_elf`] function.
pub struct LoadedKernel {
/// Address range containg the bounds of the loaded program headers.
/// `address_range.start` is the start of the lowest loaded program header.