Fix clippy complaining about default trait

This commit is contained in:
Filip Tibell 2023-08-09 16:32:17 -05:00
parent 2407800aca
commit 78c23507c9
No known key found for this signature in database

View file

@ -31,7 +31,7 @@ impl Database {
Creates a new database struct, referencing the bundled reflection database.
*/
pub fn new() -> Self {
Self(rbx_reflection_database::get())
Self::default()
}
/**
@ -125,6 +125,12 @@ impl LuaUserData for Database {
}
}
impl Default for Database {
fn default() -> Self {
Self(rbx_reflection_database::get())
}
}
impl PartialEq for Database {
fn eq(&self, _other: &Self) -> bool {
true // All database userdatas refer to the same underlying rbx-dom database