File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -765,10 +765,8 @@ mod tests {
765
765
766
766
#[ test]
767
767
fn from_std_str_utf8error_works ( ) {
768
- let broken = b"Hello \xF0 \x90 \x80 World" ;
769
- #[ allow( unknown_lints) ]
770
- #[ allow( invalid_from_utf8) ]
771
- let error: StdError = str:: from_utf8 ( broken) . unwrap_err ( ) . into ( ) ;
768
+ let broken = Vec :: from ( b"Hello \xF0 \x90 \x80 World" as & [ u8 ] ) ;
769
+ let error: StdError = str:: from_utf8 ( & broken) . unwrap_err ( ) . into ( ) ;
772
770
match error {
773
771
StdError :: InvalidUtf8 { msg, .. } => {
774
772
assert_eq ! ( msg, "invalid utf-8 sequence of 3 bytes from index 6" )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ mod pinned_memory_cache;
5
5
mod versioning;
6
6
7
7
pub use cached_module:: CachedModule ;
8
- pub use file_system_cache:: { FileSystemCache , NewFileSystemCacheError } ;
8
+ pub use file_system_cache:: FileSystemCache ;
9
9
pub use in_memory_cache:: InMemoryCache ;
10
10
pub use pinned_memory_cache:: PinnedMemoryCache ;
11
11
pub use versioning:: current_wasmer_module_version;
Original file line number Diff line number Diff line change @@ -5,4 +5,3 @@ mod limiting_tunables;
5
5
6
6
pub use compile:: compile;
7
7
pub use engine:: { make_compiling_engine, make_runtime_engine} ;
8
- pub use limiting_tunables:: LimitingTunables ;
You can’t perform that action at this time.
0 commit comments