mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-30 08:38:16 +02:00
added external resources; refactor route recognizer
This commit is contained in:
@@ -59,8 +59,8 @@ impl<S> Resource<S> {
|
||||
self.name = name.into();
|
||||
}
|
||||
|
||||
pub(crate) fn get_name(&self) -> Option<String> {
|
||||
if self.name.is_empty() { None } else { Some(self.name.clone()) }
|
||||
pub(crate) fn get_name(&self) -> &str {
|
||||
&self.name
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user