Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellen Arteca committed Nov 2, 2024
1 parent a89b673 commit 42e0307
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ internal interface DataProviderLib: Library {
*
*See the [Rust documentation for `icu_provider`](https://docs.rs/icu_provider/latest/icu_provider/index.html) for more information.
*/

class DataProvider internal constructor (
internal val handle: Pointer,
// These ensure that anything that is borrowed is kept alive and not cleaned
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ internal interface FixedDecimalLib: Library {
}
/** See the [Rust documentation for `FixedDecimal`](https://docs.rs/fixed_decimal/latest/fixed_decimal/struct.FixedDecimal.html) for more information.
*/

class FixedDecimal internal constructor (
internal val handle: Pointer,
// These ensure that anything that is borrowed is kept alive and not cleaned
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ internal interface FixedDecimalFormatterLib: Library {
*
*See the [Rust documentation for `FixedDecimalFormatter`](https://docs.rs/icu/latest/icu/decimal/struct.FixedDecimalFormatter.html) for more information.
*/

class FixedDecimalFormatter internal constructor (
internal val handle: Pointer,
// These ensure that anything that is borrowed is kept alive and not cleaned
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ internal interface LocaleLib: Library {
*
*See the [Rust documentation for `Locale`](https://docs.rs/icu/latest/icu/locid/struct.Locale.html) for more information.
*/

class Locale internal constructor (
internal val handle: Pointer,
// These ensure that anything that is borrowed is kept alive and not cleaned
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tool/src/kotlin/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ pub mod test {
let tcx = new_tcx(tk_stream);
let docs_urls = std::collections::HashMap::new();
let docs_generator = &diplomat_core::hir::DocsUrlGenerator::with_base_urls(None, docs_urls);
let formatter = KotlinFormatter::new(&tcx, None, &docs_generator);
let formatter = KotlinFormatter::new(&tcx, None, docs_generator);
let opaques = tcx.opaques();
assert!(!opaques.is_empty());
let mut all_types = tcx.all_types();
Expand Down
2 changes: 1 addition & 1 deletion tool/src/kotlin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ returnVal.option() ?: return null
non_native_params_and_types,
input_params: native_input_names.join(", "),
docs: match &method.docs {
Some(method_docs) => self.formatter.fmt_docs(&method_docs),
Some(method_docs) => self.formatter.fmt_docs(method_docs),
None => "".to_string(),
},
}
Expand Down
1 change: 0 additions & 1 deletion tool/templates/kotlin/Trait.kt.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import com.sun.jna.Library
import com.sun.jna.Native
import com.sun.jna.Pointer
import com.sun.jna.Structure

{% if !docs.is_empty() -%}
/** {{docs}}
*/
Expand Down

0 comments on commit 42e0307

Please sign in to comment.