-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into IGI-111/v0.66.6
- Loading branch information
Showing
10 changed files
with
137 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
//! Utilities for managing edge cases in rendering types and their corresponding documentation. | ||
pub mod format; | ||
|
||
/// Strip the generic suffix from a type name. For example, `Foo<T>` would become `Foo`. | ||
pub fn strip_generic_suffix(input: &str) -> &str { | ||
input.split_once('<').map_or(input, |(head, _)| head) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/tests/data/impl_traits_clone/Forc.lock → .../tests/data/impl_traits_generic/Forc.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[[package]] | ||
name = "core" | ||
source = "path+from-root-09A5B00ACCB1BF9C" | ||
source = "path+from-root-BD391496AC0FBC33" | ||
|
||
[[package]] | ||
name = "impl_traits_clone" | ||
name = "impl_traits_generic" | ||
source = "member" | ||
dependencies = ["core"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
authors = ["Fuel Labs <[email protected]>"] | ||
entry = "lib.sw" | ||
license = "Apache-2.0" | ||
name = "impl_traits_clone" | ||
name = "impl_traits_generic" | ||
|
||
[dependencies] | ||
core = { path = "../../../../../../sway-lib-core" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...c/tests/data/impl_traits_clone/src/lib.sw → ...tests/data/impl_traits_generic/src/lib.sw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library; | ||
|
||
mod foo; | ||
pub mod foo; | ||
mod bar; |
Oops, something went wrong.