File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ use crate::types::MaybeSend;
1616pub 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 ) ]
2220pub enum NavigateError {
2321 Ambiguous ,
@@ -55,8 +53,6 @@ type WriteResult = ffi::luarequire_WriteResult;
5553type 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" ) ) ) ]
6056pub 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" ) ]
319316fn detect_config_format ( data : & [ u8 ] ) -> ConfigStatus {
320317 let data = data. trim_ascii ( ) ;
321318 if data. starts_with ( b"{" ) {
You can’t perform that action at this time.
0 commit comments