base: fix cargo doc warnings

Fix a few link-related (either dead links or typos) in the base crate.

BUG=None
TEST=cargo doc

Change-Id: I520dd2fbfc16de72fcf19ecdd90943a7a963103c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3671057
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Alexandre Courbot 2022-05-27 12:51:37 +09:00 committed by Chromeos LUCI
parent 09f4513745
commit c9b84cf570
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ use crate::descriptor::{AsRawDescriptor, FromRawDescriptor, IntoRawDescriptor};
pub use crate::platform::EventReadResult;
use crate::{platform::Event as PlatformEvent, RawDescriptor, Result};
/// See [PlatformEvent](crate::platform::PlatformEvent) for struct- and method-level
/// See the [platform-specific Event struct](crate::platform::Event) for struct- and method-level
/// documentation.
// TODO(b:231344063) Move/update documentation.
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]

View file

@ -198,7 +198,7 @@ where
F: Fn(&mut fmt::Formatter, &log::Record<'_>) -> std::io::Result<()> + Sync + Send,
{
/// A filter for log messages. Please see
/// module level documentation and [`env_logger` crate][https://docs.rs/env_logger]
/// module level documentation and [`env_logger` crate](https://docs.rs/env_logger)
///
/// Example: `off`, `trace`, `trace,crosvm=error,base::syslog=debug`
pub filter: &'a str,
@ -209,7 +209,7 @@ where
/// descriptor to preserve on forks (intended to be used with pipe)
pub pipe_fd: Option<RawDescriptor>,
/// A formatter to use with the pipe. (Syslog has hardcoded format)
/// see module level documentation and [`env_logger` crate][https://docs.rs/env_logger]
/// see module level documentation and [`env_logger` crate](https://docs.rs/env_logger)
pub pipe_formatter: Option<F>,
/// TAG to use for syslog output
pub proc_name: String,
@ -308,7 +308,7 @@ pub fn init() -> Result<(), Error> {
/// besides return `Ok` or `Err` appropriately.
///
/// Arguments:
/// * filter: See https://docs.rs/env_logger/0.9/env_logger/index.html for example filter
/// * filter: See <https://docs.rs/env_logger/0.9/env_logger/index.html> for example filter
/// specifications
/// * stderr: If set will output to stderr (in addition)
/// * file: If set will output to this file (in addition)