mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Fix snapshot clippy lints (#685)
The sixth in a series of PRs that aim to get CI passing
This commit is contained in:
parent
5b1a090c5e
commit
a2f68c2e3c
3 changed files with 7 additions and 10 deletions
|
|
@ -37,8 +37,8 @@ pub struct RojoTree {
|
|||
|
||||
impl RojoTree {
|
||||
pub fn new(snapshot: InstanceSnapshot) -> RojoTree {
|
||||
let root_builder = InstanceBuilder::new(snapshot.class_name.to_owned())
|
||||
.with_name(snapshot.name.to_owned())
|
||||
let root_builder = InstanceBuilder::new(snapshot.class_name)
|
||||
.with_name(snapshot.name)
|
||||
.with_properties(snapshot.properties);
|
||||
|
||||
let mut tree = RojoTree {
|
||||
|
|
@ -245,7 +245,7 @@ impl<'a> InstanceWithMeta<'a> {
|
|||
}
|
||||
|
||||
pub fn metadata(&self) -> &'a InstanceMetadata {
|
||||
&self.metadata
|
||||
self.metadata
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -294,6 +294,6 @@ impl InstanceWithMetaMut<'_> {
|
|||
}
|
||||
|
||||
pub fn metadata(&self) -> &InstanceMetadata {
|
||||
&self.metadata
|
||||
self.metadata
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue