Skip to content

Commit

Permalink
doc: fix nightly generation (#71)
Browse files Browse the repository at this point in the history
* fix: add a temporary exception for a new lint

ref: rust-lang/rust#82450

there will probably be a cleaner fix at some point (or even a change in
how the nightly cfg is implemented)

* fix: update a broken link in doc
  • Loading branch information
imrn99 authored May 6, 2024
1 parent 0087610 commit b2f903b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions honeycomb-core/src/cmap2/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

// ------ IMPORTS

#[cfg(doc)]
use crate::NULL_DART_ID;

use super::CMAP2_BETA;
use crate::{AttrSparseVec, CoordsFloat, DartIdentifier, Vertex2};
use std::collections::BTreeSet;
Expand Down
1 change: 1 addition & 0 deletions honeycomb-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// ------ CUSTOM LINTS

// --- enable doc_auto_cfg feature if compiling in nightly
#![allow(unexpected_cfgs)]
#![cfg_attr(nightly, feature(doc_auto_cfg))]
// --- some though love for the code
#![warn(missing_docs)]
Expand Down

0 comments on commit b2f903b

Please sign in to comment.