error[E0277]: the trait bound BundleResources: Default is not satisfied
--> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:330:61
330
let mut resources = config.tauri.bundle.resources.clone().unwrap_or_default();
^^^^^^^^^^^^^^^^^ the trait Default is not implemented for BundleResources
note: required by a bound in std::option::Option::<T>::unwrap_or_default
--> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\option.rs:1003:12
|
1001 | pub fn unwrap_or_default(self) -> T
| ----------------- required by a bound in this associated function
1002 | where
1003 | T: Default,
| ^^^^^^^ required by this bound in Option::<T>::unwrap_or_default
error[E0599]: no method named as_slice found for enum BundleResources in the current scope
--> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:338:47
note: the method as_slice exists on the type Vec<std::string::String>
--> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\alloc\src\vec\mod.rs:1193:5
|
1193 | pub fn as_slice(&self) -> &[T] {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277.
error: could not compile tauri-build (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
BundleResources: Default
is not satisfied --> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:330:61Default
is not implemented forBundleResources
note: required by a bound in
std::option::Option::<T>::unwrap_or_default
--> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\option.rs:1003:12| 1001 | pub fn unwrap_or_default(self) -> T | ----------------- required by a bound in this associated function 1002 | where 1003 | T: Default, | ^^^^^^^ required by this bound in
Option::<T>::unwrap_or_default
as_slice
found for enumBundleResources
in the current scope --> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:338:47BundleResources
note: the method
as_slice
exists on the typeVec<std::string::String>
--> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\alloc\src\vec\mod.rs:1193:5 | 1193 | pub fn as_slice(&self) -> &[T] { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Some errors have detailed explanations: E0277, E0599.
For more information about an error, try
rustc --explain E0277
. error: could not compiletauri-build
(lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish...