mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 14:15:24 +00:00
Fix warnings compiling server
This commit is contained in:
@@ -32,12 +32,6 @@ const INIT_SCRIPT: &str = "init.lua";
|
|||||||
const INIT_SERVER_SCRIPT: &str = "init.server.lua";
|
const INIT_SERVER_SCRIPT: &str = "init.server.lua";
|
||||||
const INIT_CLIENT_SCRIPT: &str = "init.client.lua";
|
const INIT_CLIENT_SCRIPT: &str = "init.client.lua";
|
||||||
|
|
||||||
fn show_snapshot_error(path: &Path, error: SnapshotError) {
|
|
||||||
error!("Rojo couldn't turn one of the project's files into Roblox instances.");
|
|
||||||
error!("Any changes to the file have been ignored.");
|
|
||||||
error!("{}", error);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `source_path` or `project_definition` or both must both be Some.
|
/// `source_path` or `project_definition` or both must both be Some.
|
||||||
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
|
||||||
pub struct MetadataPerInstance {
|
pub struct MetadataPerInstance {
|
||||||
@@ -183,7 +177,9 @@ impl RbxSession {
|
|||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
show_snapshot_error(&path_to_snapshot, err);
|
error!("Rojo couldn't turn one of the project's files into Roblox instances.");
|
||||||
|
error!("Any changes to the file have been ignored.");
|
||||||
|
error!("{}", err);
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ impl rlua::UserData for LuaRbxSnapshot {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
methods.add_meta_method(rlua::MetaMethod::ToString, |_context, this, _args: ()| {
|
methods.add_meta_method(rlua::MetaMethod::ToString, |_context, _this, _args: ()| {
|
||||||
Ok("RbxSnapshotInstance")
|
Ok("RbxSnapshotInstance")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user