This commit is contained in:
Nikolay Kim 2024-03-12 18:47:12 +06:00
parent 5d4da464ac
commit 30ba29d18a
4 changed files with 5 additions and 5 deletions

View file

@ -100,7 +100,7 @@ impl ResourceDef {
let mut elements = Vec::new();
for path in set {
p = path.clone();
p.clone_from(&path);
let (pelems, elems) = ResourceDef::parse(&path);
tp.push(pelems);
elements = elems;
@ -158,7 +158,7 @@ impl ResourceDef {
let mut elements = Vec::new();
for path in patterns {
p = path.clone();
p.clone_from(&path);
let (pelems, elems) = ResourceDef::parse(&path);
tp.push(pelems);
elements = elems;

View file

@ -333,7 +333,7 @@ where
ResourceDef::new(self.rdef.clone())
};
if let Some(ref name) = self.name {
*rdef.name_mut() = name.clone();
rdef.name_mut().clone_from(name);
}
let state = self.state.take().map(|state| {

View file

@ -289,7 +289,7 @@ where
ResourceDef::new(self.rdef)
};
if let Some(ref name) = self.name {
*rdef.name_mut() = name.clone();
rdef.name_mut().clone_from(name);
}
config.register_service(rdef, guards, self.srv, None)
}

View file

@ -216,8 +216,8 @@ pub fn hash_key(key: &[u8]) -> String {
}
#[cfg(test)]
#[allow(unused_imports, unused_variables, dead_code)]
mod test {
#![allow(unused_imports, unused_variables, dead_code)]
use super::*;
macro_rules! opcode_into {