Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport v2 -> v1: Test docs in CI #108

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.tc }}
override: true
- run: cargo doc
- run: cargo test --all --all-features
test-macos:
runs-on: macos-latest
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! Using the whoami crate is super easy! All of the public items are simple
//! functions with no parameters that return [`String`]s or [`OsString`]s (with
//! the exception of [`desktop_env()`], [`platform()`], and [`arch()`], which
//! return enums, and [`lang()`] that returns an iterator of [`String`]s). The
//! return enums, and [`langs()`] that returns an iterator of [`String`]s). The
//! following example shows how to use all of the functions (except those that
//! return [`OsString`]):
//!
Expand Down Expand Up @@ -46,6 +46,8 @@
//! whoami::arch(),
//! );
//! ```
//!
//! [`OsString`]: std::ffi::OsString
#![warn(
anonymous_parameters,
Expand Down
Loading