mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-22 21:55:15 +00:00
Fix clippy warnings
This commit is contained in:
@@ -36,7 +36,7 @@ impl SnapshotMiddleware for SnapshotJsonModel {
|
||||
serde_json::from_slice(&entry.contents(vfs)?).expect("TODO: Handle serde_json errors");
|
||||
|
||||
if let Some(json_name) = &instance.name {
|
||||
if json_name != &instance_name {
|
||||
if json_name != instance_name {
|
||||
log::warn!(
|
||||
"Name from JSON model did not match its file name: {}",
|
||||
entry.path().display()
|
||||
|
||||
@@ -36,6 +36,8 @@ impl SnapshotMiddleware for SnapshotLua {
|
||||
if entry.is_file() {
|
||||
snapshot_lua_file(vfs, entry)
|
||||
} else {
|
||||
// At this point, our entry is definitely a directory!
|
||||
|
||||
if let Some(snapshot) = snapshot_init(context, vfs, entry, "init.lua")? {
|
||||
// An `init.lua` file turns its parent into a ModuleScript
|
||||
Ok(Some(snapshot))
|
||||
|
||||
Reference in New Issue
Block a user