diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-09-30 19:38:50 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-01 23:17:19 +0200 |
| commit | 759eba0a08ef80f958e671e822ad02e2b5409946 (patch) | |
| tree | 9f5193b2b18a57a327164a4cc197711dd1a72678 /compiler/rustc_llvm/src | |
| parent | b6057bf7b7ee7c58e6a39ead02eaa13b75f908c2 (diff) | |
| download | rust-759eba0a08ef80f958e671e822ad02e2b5409946.tar.gz rust-759eba0a08ef80f958e671e822ad02e2b5409946.zip | |
Fix clippy lints
Diffstat (limited to 'compiler/rustc_llvm/src')
| -rw-r--r-- | compiler/rustc_llvm/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/src/lib.rs b/compiler/rustc_llvm/src/lib.rs index 2f199989d3b..6493bd91ca2 100644 --- a/compiler/rustc_llvm/src/lib.rs +++ b/compiler/rustc_llvm/src/lib.rs @@ -17,6 +17,10 @@ impl RustString { pub fn len(&self) -> usize { self.bytes.borrow().len() } + + pub fn is_empty(&self) -> bool { + self.bytes.borrow().is_empty() + } } /// Appending to a Rust string -- used by RawRustStringOstream. |
