mirror of
https://github.com/lune-org/lune.git
synced 2025-03-04 03:01:39 +00:00
Fix clippy complaining about default trait
This commit is contained in:
parent
2407800aca
commit
78c23507c9
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue