Skip to content

Commit

Permalink
Work around doctest BS in auxtools-impl to avoid stupid errors (we …
Browse files Browse the repository at this point in the history
…don't HAVE doctests there anyways)
  • Loading branch information
Absolucy committed Oct 13, 2024
1 parent a46d07e commit d9fa916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions auxtools-impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ license.workspace = true

[lib]
proc-macro = true
doctest = false

[dependencies]
proc-macro2 = "1.0"
Expand Down
5 changes: 3 additions & 2 deletions auxtools-impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ pub fn pin_dll(attr: TokenStream) -> TokenStream {
///
/// Here we define a hook that multiplies a number passed to it by two.
/// It can now be used to hook procs, for example
/// `hooks::hook("/proc/double_up", double_up);` ```ignore
/// `hooks::hook("/proc/double_up", double_up);`
/// ```ignore
/// #[hook]
/// fn double_up(num: Value) {
/// if let Some(num) = num.as_number() {
Expand All @@ -189,7 +190,7 @@ pub fn pin_dll(attr: TokenStream) -> TokenStream {
/// Value::null()
/// }
/// ```
///
///
/// This function is used to hook `/mob/proc/on_honked`.
/// By specifying the proc path, we hook the proc immediately upon startup.
/// ```ignore
Expand Down

0 comments on commit d9fa916

Please sign in to comment.