Skip to content

Commit 676f3a6

Browse files
committed
Fix tests
1 parent 0beaac2 commit 676f3a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/luau/require.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ use crate::types::MaybeSend;
1616
pub use fs::TextRequirer;
1717

1818
/// An error that can occur during navigation in the Luau `require-by-string` system.
19-
#[cfg(any(feature = "luau", doc))]
20-
#[cfg_attr(docsrs, doc(cfg(feature = "luau")))]
2119
#[derive(Debug, Clone)]
2220
pub enum NavigateError {
2321
Ambiguous,
@@ -55,8 +53,6 @@ type WriteResult = ffi::luarequire_WriteResult;
5553
type ConfigStatus = ffi::luarequire_ConfigStatus;
5654

5755
/// A trait for handling modules loading and navigation in the Luau `require-by-string` system.
58-
#[cfg(any(feature = "luau", doc))]
59-
#[cfg_attr(docsrs, doc(cfg(feature = "luau")))]
6056
pub trait Require {
6157
/// Returns `true` if "require" is permitted for the given chunk name.
6258
fn is_require_allowed(&self, chunk_name: &str) -> bool;
@@ -316,6 +312,7 @@ pub(super) unsafe extern "C-unwind" fn init_config(config: *mut ffi::luarequire_
316312
}
317313

318314
/// Detect configuration file format (JSON or Luau)
315+
#[cfg(feature = "luau")]
319316
fn detect_config_format(data: &[u8]) -> ConfigStatus {
320317
let data = data.trim_ascii();
321318
if data.starts_with(b"{") {

0 commit comments

Comments
 (0)